Class: Twilio::REST::Pricing::V2
- 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
Instance Method Summary collapse
-
#initialize(domain) ⇒ V2
constructor
Initialize the V2 version of Pricing.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #voice ⇒ Twilio::REST::Pricing::V2::VoiceContext
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_s ⇒ Object
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 |
#voice ⇒ 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 |