Class: GetStream::Generated::Models::MessageHistoryEntryResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/message_history_entry_response.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #inspect, omit_empty_fields, #to_h, #to_json

Constructor Details

#initialize(attributes = {}) ⇒ MessageHistoryEntryResponse

Initialize with attributes



35
36
37
38
39
40
41
42
43
44
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 35

def initialize(attributes = {})
  super(attributes)
  @is_deleted = attributes[:is_deleted] || attributes['is_deleted']
  @message_id = attributes[:message_id] || attributes['message_id']
  @message_updated_at = attributes[:message_updated_at] || attributes['message_updated_at']
  @message_updated_by_id = attributes[:message_updated_by_id] || attributes['message_updated_by_id']
  @text = attributes[:text] || attributes['text']
  @attachments = attributes[:attachments] || attributes['attachments']
  @Custom = attributes[:Custom] || attributes['Custom']
end

Instance Attribute Details

#attachmentsArray<Attachment>



29
30
31
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 29

def attachments
  @attachments
end

#CustomObject



32
33
34
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 32

def Custom
  @Custom
end

#is_deletedBoolean



14
15
16
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 14

def is_deleted
  @is_deleted
end

#message_idString



17
18
19
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 17

def message_id
  @message_id
end

#message_updated_atDateTime



20
21
22
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 20

def message_updated_at
  @message_updated_at
end

#message_updated_by_idString



23
24
25
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 23

def message_updated_by_id
  @message_updated_by_id
end

#textString



26
27
28
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 26

def text
  @text
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/getstream_ruby/generated/models/message_history_entry_response.rb', line 47

def self.json_field_mappings
  {
    is_deleted: 'is_deleted',
    message_id: 'message_id',
    message_updated_at: 'message_updated_at',
    message_updated_by_id: 'message_updated_by_id',
    text: 'text',
    attachments: 'attachments',
    Custom: 'Custom'
  }
end