lib/plaid/call.rb
# This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables and sets up a new Customer class .
def post(path,type,options,email)
      base_url = self.instance_variable_get(:'@base_url')
      url = base_url + path
      RestClient.post(url,
            :client_id => self.instance_variable_get(:'@customer_id'),:secret => self.instance_variable_get(:'@secret'), :type => type ,:credentials => {:username => options[:username], :password => options[:password], :pin => options[:pin]} ,:email => email){ |response, request, result, &block|
          case response.code
          when 200
            response
          when 201
            response
          else
            response.return!(request, result, &block)
          end
      }
    end
def post ( path , type , options , email ) base_url = self . instance_variable_get ( :' @base_url ' ) url = base_url + path RestClient . post ( url , :client_id => self . instance_variable_get ( :' @customer_id ' ) , :secret => self . instance_variable_get ( :' @secret ' ) , :type => type , :credentials => { :username => options [ :username ] , :password => options [ :password ] , :pin => options [ :pin ] } , :email => email ) { | response , request , result , & block | case response . code when 200 response when 201 response else response . return! ( request , result , & block ) end } end
This initializes our instance variables, and sets up a new Customer class.
This initializes our instance variables and sets up a new Customer class .
path
<not_specific>
type
<not_specific>
options
<not_specific>
email
<not_specific>