Class: Twilio::REST::Pricing::V2

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/pricing/v2.rb,
lib/twilio-ruby/rest/pricing/v2/voice.rb,
lib/twilio-ruby/rest/pricing/v2/voice/number.rb,
lib/twilio-ruby/rest/pricing/v2/voice/country.rb

Defined Under Namespace

Classes: 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) ⇒ V2

Initialize the V2 version of Pricing


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

def initialize(domain)
  super
  @version = 'v2'
  @voice = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation


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

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

#voiceTwilio::REST::Pricing::V2::VoiceContext

Returns:

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

23
24
25
# File 'lib/twilio-ruby/rest/pricing/v2.rb', line 23

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