Class: VoiceML::PricingV2Resource
- Inherits:
-
Object
- Object
- VoiceML::PricingV2Resource
- Defined in:
- lib/voiceml/resources/pricing.rb
Overview
client.pricing.v2.* — Voice, Trunking.
Instance Attribute Summary collapse
-
#trunking ⇒ Object
readonly
Returns the value of attribute trunking.
-
#voice ⇒ Object
readonly
Returns the value of attribute voice.
Instance Method Summary collapse
-
#initialize(transport) ⇒ PricingV2Resource
constructor
A new instance of PricingV2Resource.
Constructor Details
#initialize(transport) ⇒ PricingV2Resource
Returns a new instance of PricingV2Resource.
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/voiceml/resources/pricing.rb', line 129 def initialize(transport) @voice = PricingProduct.new( PricingCountriesResource.new(transport, '/v2/Voice/Countries', PricingVoiceCountryV2), PricingV2VoiceNumbersResource.new(transport) ) @trunking = PricingProduct.new( PricingCountriesResource.new(transport, '/v2/Trunking/Countries', PricingTrunkingCountry), PricingV2TrunkingNumbersResource.new(transport) ) end |
Instance Attribute Details
#trunking ⇒ Object (readonly)
Returns the value of attribute trunking.
127 128 129 |
# File 'lib/voiceml/resources/pricing.rb', line 127 def trunking @trunking end |
#voice ⇒ Object (readonly)
Returns the value of attribute voice.
127 128 129 |
# File 'lib/voiceml/resources/pricing.rb', line 127 def voice @voice end |