Class: Twilio::REST::Accounts::V1::SafelistInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Accounts::V1::SafelistInstance
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/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
147 148 149 150 151 152 153 154 155 |
# File 'lib/twilio-ruby/rest/accounts/v1/safelist.rb', line 147 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
178 179 180 |
# File 'lib/twilio-ruby/rest/accounts/v1/safelist.rb', line 178 def inspect "<Twilio.Accounts.V1.SafelistInstance>" end |
#phone_number ⇒ String
Returns The phone number in SafeList.
166 167 168 |
# File 'lib/twilio-ruby/rest/accounts/v1/safelist.rb', line 166 def phone_number @properties['phone_number'] end |
#sid ⇒ String
Returns The unique string that we created to identify the SafeList resource.
160 161 162 |
# File 'lib/twilio-ruby/rest/accounts/v1/safelist.rb', line 160 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
172 173 174 |
# File 'lib/twilio-ruby/rest/accounts/v1/safelist.rb', line 172 def to_s "<Twilio.Accounts.V1.SafelistInstance>" end |