lib/plaid/upgrade.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,access_token,options={})
      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'), :access_token => access_token, :upgrade_to => options[:upgrade_to]{ |response, request, result, &block|
          case response.code
          when 200
            response
          when 201
            response
          else
            response.return!(request, result, &block)
          end
      }
    end
def post ( path , access_token , options = { } ) 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 ' ) , :access_token => access_token , :upgrade_to => options [ :upgrade_to ] { | 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>
access_token
<not_specific>
options
<not_specific>