Class: Twilio::REST::Conversations::V1::ConversationWithParticipantsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Conversations::V1::ConversationWithParticipantsInstance
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The unique ID of the [Account](www.twilio.com/docs/iam/api/account) responsible for this conversation.
-
#attributes ⇒ String
An optional string metadata field you can use to store any data you wish.
- #bindings ⇒ Hash
-
#chat_service_sid ⇒ String
The unique ID of the [Conversation Service](www.twilio.com/docs/conversations/api/service-resource) this conversation belongs to.
-
#date_created ⇒ Time
The date that this resource was created.
-
#date_updated ⇒ Time
The date that this resource was last updated.
-
#friendly_name ⇒ String
The human-readable name of this conversation, limited to 256 characters.
-
#initialize(version, payload) ⇒ ConversationWithParticipantsInstance
constructor
Initialize the ConversationWithParticipantsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#links ⇒ Hash
Contains absolute URLs to access the [participants](www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
-
#messaging_service_sid ⇒ String
The unique ID of the [Messaging Service](www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
-
#sid ⇒ String
A 34 character string that uniquely identifies this resource.
- #state ⇒ State
-
#timers ⇒ Hash
Timer date values representing state update for this conversation.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#unique_name ⇒ String
An application-defined string that uniquely identifies the resource.
-
#url ⇒ String
An absolute API resource URL for this conversation.
Constructor Details
#initialize(version, payload) ⇒ ConversationWithParticipantsInstance
Initialize the ConversationWithParticipantsInstance
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 268 def initialize(version, payload ) super(version) # Marshaled Properties @properties = { 'account_sid' => payload['account_sid'], 'chat_service_sid' => payload['chat_service_sid'], 'messaging_service_sid' => payload['messaging_service_sid'], 'sid' => payload['sid'], 'friendly_name' => payload['friendly_name'], 'unique_name' => payload['unique_name'], 'attributes' => payload['attributes'], 'state' => payload['state'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']), 'timers' => payload['timers'], 'links' => payload['links'], 'bindings' => payload['bindings'], 'url' => payload['url'], } end |
Instance Method Details
#account_sid ⇒ String
294 295 296 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 294 def account_sid @properties['account_sid'] end |
#attributes ⇒ String
330 331 332 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 330 def attributes @properties['attributes'] end |
#bindings ⇒ Hash
366 367 368 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 366 def bindings @properties['bindings'] end |
#chat_service_sid ⇒ String
300 301 302 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 300 def chat_service_sid @properties['chat_service_sid'] end |
#date_created ⇒ Time
342 343 344 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 342 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
348 349 350 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 348 def date_updated @properties['date_updated'] end |
#friendly_name ⇒ String
318 319 320 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 318 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
384 385 386 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 384 def inspect "<Twilio.Conversations.V1.ConversationWithParticipantsInstance>" end |
#links ⇒ Hash
360 361 362 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 360 def links @properties['links'] end |
#messaging_service_sid ⇒ String
306 307 308 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 306 def messaging_service_sid @properties['messaging_service_sid'] end |
#sid ⇒ String
312 313 314 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 312 def sid @properties['sid'] end |
#state ⇒ State
336 337 338 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 336 def state @properties['state'] end |
#timers ⇒ Hash
354 355 356 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 354 def timers @properties['timers'] end |
#to_s ⇒ Object
Provide a user friendly representation
378 379 380 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 378 def to_s "<Twilio.Conversations.V1.ConversationWithParticipantsInstance>" end |
#unique_name ⇒ String
324 325 326 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 324 def unique_name @properties['unique_name'] end |
#url ⇒ String
372 373 374 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation_with_participants.rb', line 372 def url @properties['url'] end |