Class: Twilio::REST::Pricing::V1::PhoneNumberInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Pricing::V1::PhoneNumberInstance
- Defined in:
- lib/twilio-ruby/rest/pricing/v1/phone_number.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ PhoneNumberInstance
constructor
Initialize the PhoneNumberInstance.
-
#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) ⇒ PhoneNumberInstance
Initialize the PhoneNumberInstance
87 88 89 90 91 92 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 87 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
120 121 122 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 120 def inspect "<Twilio.Pricing.V1.PhoneNumberInstance>" end |
#links ⇒ String
Returns The links.
108 109 110 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 108 def links @properties['links'] end |
#name ⇒ String
Returns The name.
96 97 98 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 96 def name @properties['name'] end |
#to_s ⇒ Object
Provide a user friendly representation
114 115 116 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 114 def to_s "<Twilio.Pricing.V1.PhoneNumberInstance>" end |
#url ⇒ String
Returns The url.
102 103 104 |
# File 'lib/twilio-ruby/rest/pricing/v1/phone_number.rb', line 102 def url @properties['url'] end |