Class: LazerPayModule::Deposit::FIAT
- Defined in:
- lib/lazerpay/main_module.rb
Instance Method Summary collapse
- #get_available_accounts ⇒ Object
- #get_funding_rate(currency) ⇒ Object
- #init(payload) ⇒ Object
-
#initialize ⇒ FIAT
constructor
A new instance of FIAT.
Constructor Details
#initialize ⇒ FIAT
Returns a new instance of FIAT.
68 |
# File 'lib/lazerpay/main_module.rb', line 68 def initialize; end |
Instance Method Details
#get_available_accounts ⇒ Object
82 83 84 85 86 |
# File 'lib/lazerpay/main_module.rb', line 82 def get_available_accounts response = Agent.get( "/bank/funding/accounts", { secret_key: @@sk, public_key: @@pk } ); return response.to_h; end |
#get_funding_rate(currency) ⇒ Object
76 77 78 79 80 |
# File 'lib/lazerpay/main_module.rb', line 76 def get_funding_rate currency response = Agent.get( "/bank/funding/rate", { secret_key: @@sk, public_key: @@pk, query_parameter: "currency=#{currency}" } ); return response.to_h; end |
#init(payload) ⇒ Object
70 71 72 73 74 |
# File 'lib/lazerpay/main_module.rb', line 70 def init payload response = Agent.post( "/bank/funding/initiate", { secret_key: @@sk, public_key: @@pk, data: payload } ); return response.to_h; end |