Class: Pricing

Inherits:
MoceanFactory show all
Defined in:
lib/deno92/modules/account/pricing.rb

Instance Attribute Summary

Attributes inherited from MoceanFactory

#params

Instance Method Summary collapse

Methods inherited from MoceanFactory

#create, #createFinalParams, #createResponse, #isParamPrefixSet, #isRequiredFieldsSet, #reset

Constructor Details

#initialize(client) ⇒ Pricing

Returns a new instance of Pricing.



5
6
7
8
# File 'lib/deno92/modules/account/pricing.rb', line 5

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

Instance Method Details

#inquiry(params = {}) ⇒ Object



30
31
32
33
34
35
36
37
# File 'lib/deno92/modules/account/pricing.rb', line 30

def inquiry params = {}
    create(params)
    createFinalParams
    isRequiredFieldsSet
    response = Transmitter.new('/rest/1/account/pricing','get',@params)
    reset
    return response.getResponse()
end

#setDelimiter(param) ⇒ Object



20
21
22
23
# File 'lib/deno92/modules/account/pricing.rb', line 20

def setDelimiter param
    @params['mocean-delimiter'] = param
    return self
end

#setMcc(param) ⇒ Object



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

def setMcc param
    @params['mocean-mcc'] = param
    return self
end

#setMnc(param) ⇒ Object



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

def setMnc param
    @params['mocean-mnc'] = param
    return self
end

#setRespFormat(param) ⇒ Object



25
26
27
28
# File 'lib/deno92/modules/account/pricing.rb', line 25

def setRespFormat param
    @params['mocean-resp-format'] = param
    return self
end