Class: Moceansdk::Modules::Account::Balance

Inherits:
Moceansdk::Modules::AbstractClient show all
Defined in:
lib/moceansdk/modules/account/balance.rb

Instance Attribute Summary

Attributes inherited from Moceansdk::Modules::AbstractClient

#params

Instance Method Summary collapse

Methods inherited from Moceansdk::Modules::AbstractClient

#create, #create_final_params, #param_prefix_set?, #required_field_set?

Constructor Details

#initialize(obj_auth, transmitter) ⇒ Balance

Returns a new instance of Balance.



6
7
8
9
# File 'lib/moceansdk/modules/account/balance.rb', line 6

def initialize(obj_auth, transmitter)
  super(obj_auth, transmitter)
  @required_fields = ['mocean-api-key', 'mocean-api-secret']
end

Instance Method Details

#inquiry(params = {}) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/moceansdk/modules/account/balance.rb', line 15

def inquiry(params = {})
  create(params)
  create_final_params
  required_field_set?

  @transmitter.get('/account/balance', @params)
end

#resp_format=(param) ⇒ Object



11
12
13
# File 'lib/moceansdk/modules/account/balance.rb', line 11

def resp_format=(param)
  @params['mocean-resp-format'] = param
end