Class: Twilio::REST::Pricing::V1::VoiceInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Pricing::V1::VoiceInstance
- Defined in:
- lib/twilio-ruby/rest/pricing/v1/voice.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ VoiceInstance
constructor
Initialize the VoiceInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#links ⇒ String
The links.
-
#name ⇒ String
The name.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The url.
Constructor Details
#initialize(version, payload) ⇒ VoiceInstance
Initialize the VoiceInstance
101 102 103 104 105 106 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 101 def initialize(version, payload) super(version) # Marshaled Properties @properties = {'name' => payload['name'], 'url' => payload['url'], 'links' => payload['links'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
134 135 136 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 134 def inspect "<Twilio.Pricing.V1.VoiceInstance>" end |
#links ⇒ String
Returns The links.
122 123 124 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 122 def links @properties['links'] end |
#name ⇒ String
Returns The name.
110 111 112 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 110 def name @properties['name'] end |
#to_s ⇒ Object
Provide a user friendly representation
128 129 130 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 128 def to_s "<Twilio.Pricing.V1.VoiceInstance>" end |
#url ⇒ String
Returns The url.
116 117 118 |
# File 'lib/twilio-ruby/rest/pricing/v1/voice.rb', line 116 def url @properties['url'] end |