Class: Vonage::PricingTypes

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

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ PricingTypes

Returns a new instance of PricingTypes.



6
7
8
# File 'lib/vonage/pricing_types.rb', line 6

def initialize(config)
  @config = config
end

Instance Method Details

#smsObject



10
11
12
# File 'lib/vonage/pricing_types.rb', line 10

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

#voiceObject



14
15
16
# File 'lib/vonage/pricing_types.rb', line 14

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