Class: Twilio::REST::Pricing

Inherits:
PricingBase show all
Defined in:
lib/twilio-ruby/rest/pricing.rb,
lib/twilio-ruby/rest/pricing/v1.rb,
lib/twilio-ruby/rest/pricing/v2.rb,
lib/twilio-ruby/rest/pricing/v1/voice.rb,
lib/twilio-ruby/rest/pricing/v2/voice.rb,
lib/twilio-ruby/rest/pricing/v2/number.rb,
lib/twilio-ruby/rest/pricing/v2/country.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/v2/voice/number.rb,
lib/twilio-ruby/rest/pricing/v1/voice/country.rb,
lib/twilio-ruby/rest/pricing/v2/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, V2

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from PricingBase

#initialize, #to_s, #v1, #v2

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::PricingBase

Instance Method Details

#countries(iso_country = :unset) ⇒ Twilio::REST::Pricing::V2::CountryInstance, Twilio::REST::Pricing::V2::CountryList

Parameters:

Returns:



30
31
32
33
# File 'lib/twilio-ruby/rest/pricing.rb', line 30

def countries(iso_country=:unset)
  warn "countries is deprecated. Use v2.countries instead."
  self.v2.countries(iso_country)
end

#messagingTwilio::REST::Pricing::V1::MessagingInstance



6
7
8
9
# File 'lib/twilio-ruby/rest/pricing.rb', line 6

def messaging
  warn "messaging is deprecated. Use v1.messaging instead."
  self.v1.messaging()
end

#numbers(destination_number = :unset) ⇒ Twilio::REST::Pricing::V2::NumberInstance, Twilio::REST::Pricing::V2::NumberList

Parameters:

  • destination_number (String) (defaults to: :unset)

    The destination phone number in E.164 format, which consists of a + followed by the country code and subscriber number.

Returns:



41
42
43
44
# File 'lib/twilio-ruby/rest/pricing.rb', line 41

def numbers(destination_number=:unset)
  warn "numbers is deprecated. Use v2.numbers instead."
  self.v2.numbers(destination_number)
end

#phone_numbersTwilio::REST::Pricing::V1::PhoneNumberInstance



13
14
15
16
# File 'lib/twilio-ruby/rest/pricing.rb', line 13

def phone_numbers
  warn "phone_numbers is deprecated. Use v1.phone_numbers instead."
  self.v1.phone_numbers()
end

#voiceTwilio::REST::Pricing::V2::VoiceInstance



20
21
22
23
# File 'lib/twilio-ruby/rest/pricing.rb', line 20

def voice
  warn "voice is deprecated. Use v2.voice instead."
  self.v2.voice()
end