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



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

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

Instance Method Details

#messagingTwilio::REST::Pricing::V1::MessagingList



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

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

#phone_numbersTwilio::REST::Pricing::V1::PhoneNumberList



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

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

#to_sObject

Provide a user friendly representation



46
47
48
# File 'lib/twilio-ruby/rest/pricing/v1.rb', line 46

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

#voiceTwilio::REST::Pricing::V1::VoiceList



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

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