class Twilio::REST::Pricing::V1::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/v1/voice.rb
103 def initialize(version, payload)
104   super(version)
105 
106   # Marshaled Properties
107   @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links'], }
108 end

Public Instance Methods

inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/pricing/v1/voice.rb
136 def inspect
137   "<Twilio.Pricing.V1.VoiceInstance>"
138 end
name() click to toggle source

@return [String] The name

    # File lib/twilio-ruby/rest/pricing/v1/voice.rb
112 def name
113   @properties['name']
114 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/pricing/v1/voice.rb
130 def to_s
131   "<Twilio.Pricing.V1.VoiceInstance>"
132 end
url() click to toggle source

@return [String] The url

    # File lib/twilio-ruby/rest/pricing/v1/voice.rb
118 def url
119   @properties['url']
120 end