Class: VoiceML::PricingV1Resource
- Inherits:
-
Object
- Object
- VoiceML::PricingV1Resource
- Defined in:
- lib/voiceml/resources/pricing.rb
Overview
client.pricing.v1.* — Voice, Messaging, PhoneNumbers.
Instance Attribute Summary collapse
-
#messaging ⇒ Object
readonly
Returns the value of attribute messaging.
-
#phone_numbers ⇒ Object
readonly
Returns the value of attribute phone_numbers.
-
#voice ⇒ Object
readonly
Returns the value of attribute voice.
Instance Method Summary collapse
-
#initialize(transport) ⇒ PricingV1Resource
constructor
A new instance of PricingV1Resource.
Constructor Details
#initialize(transport) ⇒ PricingV1Resource
Returns a new instance of PricingV1Resource.
111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/voiceml/resources/pricing.rb', line 111 def initialize(transport) @voice = PricingProduct.new( PricingCountriesResource.new(transport, '/v1/Voice/Countries', PricingVoiceCountry), PricingV1VoiceNumbersResource.new(transport) ) @messaging = PricingProduct.new( PricingCountriesResource.new(transport, '/v1/Messaging/Countries', PricingMessagingCountry) ) @phone_numbers = PricingProduct.new( PricingCountriesResource.new(transport, '/v1/PhoneNumbers/Countries', PricingPhoneNumberCountry) ) end |
Instance Attribute Details
#messaging ⇒ Object (readonly)
Returns the value of attribute messaging.
109 110 111 |
# File 'lib/voiceml/resources/pricing.rb', line 109 def messaging @messaging end |
#phone_numbers ⇒ Object (readonly)
Returns the value of attribute phone_numbers.
109 110 111 |
# File 'lib/voiceml/resources/pricing.rb', line 109 def phone_numbers @phone_numbers end |
#voice ⇒ Object (readonly)
Returns the value of attribute voice.
109 110 111 |
# File 'lib/voiceml/resources/pricing.rb', line 109 def voice @voice end |