Class: Nexmo::PricingTypes

Inherits:
Object
  • Object
show all
Defined in:
lib/nexmo/pricing_types.rb

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PricingTypes

Returns a new instance of PricingTypes.


5
6
7
# File 'lib/nexmo/pricing_types.rb', line 5

def initialize(config)
  @config = config
end

Instance Method Details

#smsObject


9
10
11
# File 'lib/nexmo/pricing_types.rb', line 9

def sms
  @sms ||= Pricing.new(@config, type: 'sms')
end

#voiceObject


13
14
15
# File 'lib/nexmo/pricing_types.rb', line 13

def voice
  @voice ||= Pricing.new(@config, type: 'voice')
end