Class: Nexmo::PricingTypes

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

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ PricingTypes

Returns a new instance of PricingTypes.



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

def initialize(client)
  @client = client
end

Instance Method Details

#smsObject



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

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

#voiceObject



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

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