class Hyperwallet::User
Public Class Methods
all(params={})
click to toggle source
# File lib/hyperwallet/user.rb, line 4 def self.all(params={}) res = Hyperwallet.request(:get, '/users', params) convert_to_hyperwallet_object(res, User) end
auth_token(key)
click to toggle source
# File lib/hyperwallet/user.rb, line 29 def self.auth_token(key) res = Hyperwallet.request(:post, "/users/#{key}/authentication-token") convert_to_hyperwallet_object(res) end
balances(key, params={})
click to toggle source
# File lib/hyperwallet/user.rb, line 24 def self.balances(key, params={}) res = Hyperwallet.request(:get, "/users/#{key}/balances", params) convert_to_hyperwallet_object(res) end
create(params={})
click to toggle source
# File lib/hyperwallet/user.rb, line 14 def self.create(params={}) res = Hyperwallet.request(:post, '/users', params) convert_to_hyperwallet_object(res, User) end
find(key)
click to toggle source
# File lib/hyperwallet/user.rb, line 9 def self.find(key) res = Hyperwallet.request(:get, "/users/#{key}") convert_to_hyperwallet_object(res, User) end
find_bank_account(user_token, trm_token)
click to toggle source
# File lib/hyperwallet/user.rb, line 34 def self.find_bank_account(user_token, trm_token) res = Hyperwallet.request(:get, "/users/#{user_token}/bank-accounts/#{trm_token}") convert_to_hyperwallet_object(res) end
update(key, params)
click to toggle source
# File lib/hyperwallet/user.rb, line 19 def self.update(key, params) res = Hyperwallet.request(:put, "/users/#{key}", params) convert_to_hyperwallet_object(res, User) end