Class: Twilio::REST::Api::V2010::SafelistInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::SafelistInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/safelist.rb
Instance Method Summary collapse
-
#initialize(version, payload) ⇒ SafelistInstance
constructor
Initialize the SafelistInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#phone_number ⇒ String
The phone number in SafeList.
-
#sid ⇒ String
The unique string that we created to identify the SafeList resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ SafelistInstance
Initialize the SafelistInstance
130 131 132 133 134 135 136 137 138 |
# File 'lib/twilio-ruby/rest/api/v2010/safelist.rb', line 130 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'phone_number' => payload['phone_number'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
161 162 163 |
# File 'lib/twilio-ruby/rest/api/v2010/safelist.rb', line 161 def inspect "<Twilio.Api.V2010.SafelistInstance>" end |
#phone_number ⇒ String
Returns The phone number in SafeList.
149 150 151 |
# File 'lib/twilio-ruby/rest/api/v2010/safelist.rb', line 149 def phone_number @properties['phone_number'] end |
#sid ⇒ String
Returns The unique string that we created to identify the SafeList resource.
143 144 145 |
# File 'lib/twilio-ruby/rest/api/v2010/safelist.rb', line 143 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
155 156 157 |
# File 'lib/twilio-ruby/rest/api/v2010/safelist.rb', line 155 def to_s "<Twilio.Api.V2010.SafelistInstance>" end |