class Finicity::V1::Request::GetCustomersByUsername
Attributes
limit[RW]
Attributes
start[RW]
Attributes
token[RW]
Attributes
username[RW]
Attributes
Public Class Methods
new(token, username, start, limit)
click to toggle source
Instance Methods
# File lib/finicity/v1/request/get_customers_by_username.rb, line 21 def initialize(token, username, start, limit) @limit = limit @start = start @token = token @username = username end
Public Instance Methods
get_customers_by_username()
click to toggle source
# File lib/finicity/v1/request/get_customers_by_username.rb, line 28 def get_customers_by_username http_client.get(url, query, headers) end
headers()
click to toggle source
# File lib/finicity/v1/request/get_customers_by_username.rb, line 32 def headers { 'Finicity-App-Key' => ::Finicity.config.app_key, 'Finicity-App-Token' => token } end
query()
click to toggle source
# File lib/finicity/v1/request/get_customers_by_username.rb, line 39 def query { :search => username, :start => start, :limit => limit } end
url()
click to toggle source
# File lib/finicity/v1/request/get_customers_by_username.rb, line 43 def url ::URI.join( ::Finicity.config.base_url, 'v1/', 'customers' ) end