Class: Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::CallContext::UserDefinedMessageInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created User Defined Message.
-
#call_sid ⇒ String
The SID of the [Call](www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with.
-
#date_created ⇒ Time
The date that this User Defined Message was created, given in RFC 2822 format.
-
#initialize(version, payload, account_sid: nil, call_sid: nil) ⇒ UserDefinedMessageInstance
constructor
Initialize the UserDefinedMessageInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
The SID that uniquely identifies this User Defined Message.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil, call_sid: nil) ⇒ UserDefinedMessageInstance
Initialize the UserDefinedMessageInstance
113 114 115 116 117 118 119 120 121 122 123 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 113 def initialize(version, payload , account_sid: nil, call_sid: nil) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'call_sid' => payload['call_sid'], 'sid' => payload['sid'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created User Defined Message.
128 129 130 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 128 def account_sid @properties['account_sid'] end |
#call_sid ⇒ String
Returns The SID of the [Call](www.twilio.com/docs/voice/api/call-resource) the User Defined Message is associated with.
134 135 136 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 134 def call_sid @properties['call_sid'] end |
#date_created ⇒ Time
Returns The date that this User Defined Message was created, given in RFC 2822 format.
146 147 148 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 146 def date_created @properties['date_created'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
158 159 160 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 158 def inspect "<Twilio.Api.V2010.UserDefinedMessageInstance>" end |
#sid ⇒ String
Returns The SID that uniquely identifies this User Defined Message.
140 141 142 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 140 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
152 153 154 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/user_defined_message.rb', line 152 def to_s "<Twilio.Api.V2010.UserDefinedMessageInstance>" end |