Class: Twilio::REST::Pricing
- Defined in:
- lib/twilio-ruby/rest/pricing.rb,
lib/twilio-ruby/rest/pricing/v1.rb,
lib/twilio-ruby/rest/pricing/v1/voice.rb,
lib/twilio-ruby/rest/pricing/v1/messaging.rb,
lib/twilio-ruby/rest/pricing/v1/phone_number.rb,
lib/twilio-ruby/rest/pricing/v1/voice/number.rb,
lib/twilio-ruby/rest/pricing/v1/voice/country.rb,
lib/twilio-ruby/rest/pricing/v1/messaging/country.rb,
lib/twilio-ruby/rest/pricing/v1/phone_number/country.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(twilio) ⇒ Pricing
constructor
Initialize the Pricing Domain.
- #messaging ⇒ Twilio::REST::Pricing::V1::MessagingInstance
- #phone_numbers ⇒ Twilio::REST::Pricing::V1::PhoneNumberInstance
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of pricing.
- #voice ⇒ Twilio::REST::Pricing::V1::VoiceInstance
Methods inherited from Domain
Constructor Details
#initialize(twilio) ⇒ Pricing
Initialize the Pricing Domain
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 14 def initialize(twilio) super @base_url = 'https://pricing.twilio.com' @host = 'pricing.twilio.com' @port = 443 # Versions @v1 = nil end |
Instance Method Details
#messaging ⇒ Twilio::REST::Pricing::V1::MessagingInstance
33 34 35 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 33 def messaging self.v1.messaging() end |
#phone_numbers ⇒ Twilio::REST::Pricing::V1::PhoneNumberInstance
39 40 41 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 39 def phone_numbers self.v1.phone_numbers() end |
#to_s ⇒ Object
Provide a user friendly representation
51 52 53 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 51 def to_s '#<Twilio::REST::Pricing>' end |
#v1 ⇒ Object
Version v1 of pricing
27 28 29 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 27 def v1 @v1 ||= V1.new self end |
#voice ⇒ Twilio::REST::Pricing::V1::VoiceInstance
45 46 47 |
# File 'lib/twilio-ruby/rest/pricing.rb', line 45 def voice self.v1.voice() end |