Class: PostProxy::Chat

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#to_h

Constructor Details

#initialize(**attrs) ⇒ Chat

Returns a new instance of Chat.



382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
# File 'lib/postproxy/types.rb', line 382

def initialize(**attrs)
  @participant_username = nil
  @participant_name = nil
  @participant_avatar_url = nil
  @external_conversation_id = nil
  @last_inbound_at = nil
  @last_outbound_at = nil
  @last_message_at = nil
  @metadata = nil
  @archived = nil
  super
  @last_inbound_at = parse_time(@last_inbound_at)
  @last_outbound_at = parse_time(@last_outbound_at)
  @last_message_at = parse_time(@last_message_at)
  @created_at = parse_time(@created_at)
end

Instance Attribute Details

#archivedObject

Returns the value of attribute archived.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def archived
  @archived
end

#created_atObject

Returns the value of attribute created_at.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def created_at
  @created_at
end

#external_conversation_idObject

Returns the value of attribute external_conversation_id.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def external_conversation_id
  @external_conversation_id
end

#idObject

Returns the value of attribute id.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def id
  @id
end

#last_inbound_atObject

Returns the value of attribute last_inbound_at.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def last_inbound_at
  @last_inbound_at
end

#last_message_atObject

Returns the value of attribute last_message_at.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def last_message_at
  @last_message_at
end

#last_outbound_atObject

Returns the value of attribute last_outbound_at.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def last_outbound_at
  @last_outbound_at
end

#metadataObject

Returns the value of attribute metadata.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def 
  @metadata
end

#participant_avatar_urlObject

Returns the value of attribute participant_avatar_url.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def participant_avatar_url
  @participant_avatar_url
end

#participant_external_idObject

Returns the value of attribute participant_external_id.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def participant_external_id
  @participant_external_id
end

#participant_nameObject

Returns the value of attribute participant_name.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def participant_name
  @participant_name
end

#participant_usernameObject

Returns the value of attribute participant_username.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def participant_username
  @participant_username
end

#platformObject

Returns the value of attribute platform.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def platform
  @platform
end

#profile_idObject

Returns the value of attribute profile_id.



377
378
379
# File 'lib/postproxy/types.rb', line 377

def profile_id
  @profile_id
end