class Twilio::REST::Pricing::V2::VoiceInstance
Public Class Methods
new(version, payload)
click to toggle source
Initialize the VoiceInstance
@param [Version] version Version
that contains the resource @param [Hash] payload payload that contains response from Twilio
@return [VoiceInstance] VoiceInstance
Calls superclass method
Twilio::REST::InstanceResource::new
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 106 def initialize(version, payload) 107 super(version) 108 109 # Marshaled Properties 110 @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links'], } 111 end
Public Instance Methods
inspect()
click to toggle source
Provide a detailed, user friendly representation
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 139 def inspect 140 "<Twilio.Pricing.V2.VoiceInstance>" 141 end
links()
click to toggle source
@return [String] The URLs of the related Countries and Numbers
resources
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 127 def links 128 @properties['links'] 129 end
name()
click to toggle source
@return [String] The resource name
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 115 def name 116 @properties['name'] 117 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 133 def to_s 134 "<Twilio.Pricing.V2.VoiceInstance>" 135 end
url()
click to toggle source
@return [String] The absolute URL of the resource
# File lib/twilio-ruby/rest/pricing/v2/voice.rb 121 def url 122 @properties['url'] 123 end