Class: Twilio::REST::Pricing::V1

Inherits:
Version
  • Object
show all
Defined in:
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: MessagingInstance, MessagingList, MessagingPage, PhoneNumberInstance, PhoneNumberList, PhoneNumberPage, VoiceInstance, VoiceList, VoicePage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V1

Initialize the V1 version of Pricing


15
16
17
18
19
20
21
# File 'lib/twilio-ruby/rest/pricing/v1.rb', line 15

def initialize(domain)
  super
  @version = 'v1'
  @messaging = nil
  @phone_numbers = nil
  @voice = nil
end

Instance Method Details

#messagingTwilio::REST::Pricing::V1::MessagingContext

Returns:

  • (Twilio::REST::Pricing::V1::MessagingContext)

25
26
27
# File 'lib/twilio-ruby/rest/pricing/v1.rb', line 25

def messaging
  @messaging ||= MessagingList.new self
end

#phone_numbersTwilio::REST::Pricing::V1::PhoneNumberContext

Returns:

  • (Twilio::REST::Pricing::V1::PhoneNumberContext)

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

def phone_numbers
  @phone_numbers ||= PhoneNumberList.new self
end

#to_sObject

Provide a user friendly representation


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

def to_s
  '<Twilio::REST::Pricing::V1>'
end

#voiceTwilio::REST::Pricing::V1::VoiceContext

Returns:

  • (Twilio::REST::Pricing::V1::VoiceContext)

37
38
39
# File 'lib/twilio-ruby/rest/pricing/v1.rb', line 37

def voice
  @voice ||= VoiceList.new self
end