Class: Vonage::PricingTypes
- Inherits:
-
Object
- Object
- Vonage::PricingTypes
- Defined in:
- lib/vonage/pricing_types.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ PricingTypes
constructor
A new instance of PricingTypes.
- #sms ⇒ Object
- #voice ⇒ Object
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
#sms ⇒ Object
10 11 12 |
# File 'lib/vonage/pricing_types.rb', line 10 def sms @sms ||= Pricing.new(@config, type: 'sms') end |
#voice ⇒ Object
14 15 16 |
# File 'lib/vonage/pricing_types.rb', line 14 def voice @voice ||= Pricing.new(@config, type: 'voice') end |