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.



404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
# File 'lib/postproxy/types.rb', line 404

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.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def archived
  @archived
end

#created_atObject

Returns the value of attribute created_at.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def created_at
  @created_at
end

#external_conversation_idObject

Returns the value of attribute external_conversation_id.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def external_conversation_id
  @external_conversation_id
end

#idObject

Returns the value of attribute id.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def id
  @id
end

#last_inbound_atObject

Returns the value of attribute last_inbound_at.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def last_inbound_at
  @last_inbound_at
end

#last_message_atObject

Returns the value of attribute last_message_at.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def last_message_at
  @last_message_at
end

#last_outbound_atObject

Returns the value of attribute last_outbound_at.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def last_outbound_at
  @last_outbound_at
end

#metadataObject

Returns the value of attribute metadata.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def 
  @metadata
end

#participant_avatar_urlObject

Returns the value of attribute participant_avatar_url.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def participant_avatar_url
  @participant_avatar_url
end

#participant_external_idObject

Returns the value of attribute participant_external_id.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def participant_external_id
  @participant_external_id
end

#participant_nameObject

Returns the value of attribute participant_name.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def participant_name
  @participant_name
end

#participant_usernameObject

Returns the value of attribute participant_username.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def participant_username
  @participant_username
end

#platformObject

Returns the value of attribute platform.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def platform
  @platform
end

#profile_idObject

Returns the value of attribute profile_id.



399
400
401
# File 'lib/postproxy/types.rb', line 399

def profile_id
  @profile_id
end