class Reggora::LenderApiClient
Public Class Methods
authenticate(username, password)
click to toggle source
@param [string] username @param [string] password
# File lib/reggora.rb, line 22 def self.authenticate(username, password) ApiClient.authenticate(username, password, 'lender') end
new(username, password, integration_token)
click to toggle source
@param [String] username @param [String] password @param [String] integration_token
# File lib/reggora.rb, line 15 def initialize(username, password, integration_token) authorization = ApiClient.authenticate(username, password, 'lender') @api_client = Requests.new(authorization["token"], integration_token, 'lender') end
Public Instance Methods
delete(url, params = {})
click to toggle source
# File lib/reggora.rb, line 42 def delete(url, params = {}) @api_client.delete(url, params) end
get(url, params = {})
click to toggle source
# File lib/reggora.rb, line 26 def get(url, params = {}) @api_client.get(url, params) end
post(url, params = {}, query_params = {})
click to toggle source
# File lib/reggora.rb, line 30 def post(url, params = {}, query_params = {}) @api_client.post(url, params, query_params) end
post_file(url, params = {})
click to toggle source
# File lib/reggora.rb, line 34 def post_file(url, params = {}) @api_client.post_file(url, params) end
put(url, params = {})
click to toggle source
# File lib/reggora.rb, line 38 def put(url, params = {}) @api_client.put(url, params) end