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 add_account(type,options,email)
      base_url = self.instance_variable_get(:'@base_url')
      path = "/connect"
      url = base_url + path
      @response = RestClient.post(url,
            :client_id => self.instance_variable_get(:'@customer_id'),
            :secret => self.instance_variable_get(:'@secret'),
            :type => type,
            :username => options[:username],
            :password => options[:password],
            :pin => options[:pin],
            :options => {
              :login_only => true,
              :webhook => options[:webhook]
            },
            :email => email
        ){ |response, request, result, &block|
          case response.code
          when 200
            response
          when 201
            response
          else
            response.return!(request, result, &block)
          end
        }
      return parse_response(@response)
    end
def add_account ( type , options , email ) base_url = self . instance_variable_get ( :' @base_url ' ) path = "/connect" url = base_url + path @response = RestClient . post ( url , :client_id => self . instance_variable_get ( :' @customer_id ' ) , :secret => self . instance_variable_get ( :' @secret ' ) , :type => type , :username => options [ :username ] , :password => options [ :password ] , :pin => options [ :pin ] , :options => { :login_only => true , :webhook => options [ :webhook ] } , :email => email ) { | response , request , result , & block | case response . code when 200 response when 201 response else response . return! ( request , result , & block ) end } return parse_response ( @response ) 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 .
type
<not_specific>
options
<not_specific>
email
<not_specific>