Class: Moceansdk::Modules::Account::Pricing

Inherits:
Moceansdk::Modules::AbstractClient show all
Defined in:
lib/moceansdk/modules/account/pricing.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) ⇒ Pricing

Returns a new instance of Pricing.



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

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

Instance Method Details

#delimiter=(param) ⇒ Object



19
20
21
# File 'lib/moceansdk/modules/account/pricing.rb', line 19

def delimiter=(param)
  @params['mocean-delimiter'] = param
end

#inquiry(params = {}) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/moceansdk/modules/account/pricing.rb', line 27

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

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

#mcc=(param) ⇒ Object



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

def mcc=(param)
  @params['mocean-mcc'] = param
end

#mnc=(param) ⇒ Object



15
16
17
# File 'lib/moceansdk/modules/account/pricing.rb', line 15

def mnc=(param)
  @params['mocean-mnc'] = param
end

#resp_format=(param) ⇒ Object



23
24
25
# File 'lib/moceansdk/modules/account/pricing.rb', line 23

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