class Twilio::REST::Conversations::V1::ParticipantConversationInstance

Public Class Methods

new(version, payload) click to toggle source

Initialize the ParticipantConversationInstance @param [Version] version Version that contains the resource @param [Hash] payload payload that contains response from Twilio @return [ParticipantConversationInstance] ParticipantConversationInstance

Calls superclass method Twilio::REST::InstanceResource::new
    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
177 def initialize(version, payload)
178   super(version)
179 
180   # Marshaled Properties
181   @properties = {
182       'account_sid' => payload['account_sid'],
183       'chat_service_sid' => payload['chat_service_sid'],
184       'participant_sid' => payload['participant_sid'],
185       'participant_user_sid' => payload['participant_user_sid'],
186       'participant_identity' => payload['participant_identity'],
187       'participant_messaging_binding' => payload['participant_messaging_binding'],
188       'conversation_sid' => payload['conversation_sid'],
189       'conversation_unique_name' => payload['conversation_unique_name'],
190       'conversation_friendly_name' => payload['conversation_friendly_name'],
191       'conversation_attributes' => payload['conversation_attributes'],
192       'conversation_date_created' => Twilio.deserialize_iso8601_datetime(payload['conversation_date_created']),
193       'conversation_date_updated' => Twilio.deserialize_iso8601_datetime(payload['conversation_date_updated']),
194       'conversation_created_by' => payload['conversation_created_by'],
195       'conversation_state' => payload['conversation_state'],
196       'conversation_timers' => payload['conversation_timers'],
197       'links' => payload['links'],
198   }
199 end

Public Instance Methods

account_sid() click to toggle source

@return [String] The unique ID of the Account responsible for this conversation.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
203 def account_sid
204   @properties['account_sid']
205 end
chat_service_sid() click to toggle source

@return [String] The unique ID of the Conversation Service this conversation belongs to.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
209 def chat_service_sid
210   @properties['chat_service_sid']
211 end
conversation_attributes() click to toggle source

@return [String] An optional string metadata field you can use to store any data you wish.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
257 def conversation_attributes
258   @properties['conversation_attributes']
259 end
conversation_created_by() click to toggle source

@return [String] Creator of this conversation.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
275 def conversation_created_by
276   @properties['conversation_created_by']
277 end
conversation_date_created() click to toggle source

@return [Time] The date that this conversation was created.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
263 def conversation_date_created
264   @properties['conversation_date_created']
265 end
conversation_date_updated() click to toggle source

@return [Time] The date that this conversation was last updated.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
269 def conversation_date_updated
270   @properties['conversation_date_updated']
271 end
conversation_friendly_name() click to toggle source

@return [String] The human-readable name of this conversation.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
251 def conversation_friendly_name
252   @properties['conversation_friendly_name']
253 end
conversation_sid() click to toggle source

@return [String] The unique ID of the Conversation this Participant belongs to.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
239 def conversation_sid
240   @properties['conversation_sid']
241 end
conversation_state() click to toggle source

@return [participant_conversation.State] The current state of this User Conversation

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
281 def conversation_state
282   @properties['conversation_state']
283 end
conversation_timers() click to toggle source

@return [Hash] Timer date values for this conversation.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
287 def conversation_timers
288   @properties['conversation_timers']
289 end
conversation_unique_name() click to toggle source

@return [String] An application-defined string that uniquely identifies the Conversation resource

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
245 def conversation_unique_name
246   @properties['conversation_unique_name']
247 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
305 def inspect
306   "<Twilio.Conversations.V1.ParticipantConversationInstance>"
307 end
participant_identity() click to toggle source

@return [String] A unique string identifier for the conversation participant as Conversation User.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
227 def participant_identity
228   @properties['participant_identity']
229 end
participant_messaging_binding() click to toggle source

@return [Hash] Information about how this participant exchanges messages with the conversation.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
233 def participant_messaging_binding
234   @properties['participant_messaging_binding']
235 end
participant_sid() click to toggle source

@return [String] The unique ID of the Participant.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
215 def participant_sid
216   @properties['participant_sid']
217 end
participant_user_sid() click to toggle source

@return [String] The unique ID for the conversation participant as Conversation User.

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
221 def participant_user_sid
222   @properties['participant_user_sid']
223 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb
299 def to_s
300   "<Twilio.Conversations.V1.ParticipantConversationInstance>"
301 end