Class: Twilio::REST::Preview::TrustedComms::DeviceInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Preview::TrustedComms::DeviceInstance
- Defined in:
- lib/twilio-ruby/rest/preview/trusted_comms/device.rb
Overview
PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact [email protected].
Instance Method Summary collapse
-
#binding_sid ⇒ String
Binding Sid.
-
#initialize(version, payload) ⇒ DeviceInstance
constructor
Initialize the DeviceInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#phone_number ⇒ String
The end user Phone Number.
-
#sid ⇒ String
A string that uniquely identifies this Device.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The URL of this resource.
Constructor Details
#initialize(version, payload) ⇒ DeviceInstance
Initialize the DeviceInstance
95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 95 def initialize(version, payload) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'phone_number' => payload['phone_number'], 'binding_sid' => payload['binding_sid'], 'url' => payload['url'], } end |
Instance Method Details
#binding_sid ⇒ String
Returns Binding Sid.
121 122 123 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 121 def binding_sid @properties['binding_sid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
139 140 141 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 139 def inspect "<Twilio.Preview.TrustedComms.DeviceInstance>" end |
#phone_number ⇒ String
Returns The end user Phone Number.
115 116 117 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 115 def phone_number @properties['phone_number'] end |
#sid ⇒ String
Returns A string that uniquely identifies this Device.
109 110 111 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 109 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
133 134 135 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 133 def to_s "<Twilio.Preview.TrustedComms.DeviceInstance>" end |
#url ⇒ String
Returns The URL of this resource.
127 128 129 |
# File 'lib/twilio-ruby/rest/preview/trusted_comms/device.rb', line 127 def url @properties['url'] end |