Class: Balance
- Inherits:
-
MoceanFactory
- Object
- MoceanFactory
- Balance
- Defined in:
- lib/deno92/modules/account/balance.rb
Instance Attribute Summary
Attributes inherited from MoceanFactory
Instance Method Summary collapse
-
#initialize(client) ⇒ Balance
constructor
A new instance of Balance.
- #inquiry(params = {}) ⇒ Object
- #setRespFormat(param) ⇒ Object
Methods inherited from MoceanFactory
#create, #createFinalParams, #createResponse, #isParamPrefixSet, #isRequiredFieldsSet, #reset
Constructor Details
#initialize(client) ⇒ Balance
Returns a new instance of Balance.
4 5 6 7 |
# File 'lib/deno92/modules/account/balance.rb', line 4 def initialize client super(client) @required_fields = ['mocean-api-key','mocean-api-secret'] end |
Instance Method Details
#inquiry(params = {}) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/deno92/modules/account/balance.rb', line 14 def inquiry params = {} create(params) createFinalParams isRequiredFieldsSet response = Transmitter.new('/rest/1/account/balance','get', @params) reset return response.getResponse() end |
#setRespFormat(param) ⇒ Object
9 10 11 12 |
# File 'lib/deno92/modules/account/balance.rb', line 9 def setRespFormat param @params['mocean-resp-format'] = param return self end |