Class: GetStream::Generated::Models::ChatDraftResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChatDraftResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/chat_draft_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 with attributes
32
33
34
35
36
37
38
39
40
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 32
def initialize(attributes = {})
super(attributes)
@channel_cid = attributes[:channel_cid] || attributes['channel_cid']
@created_at = attributes[:created_at] || attributes['created_at']
@message = attributes[:message] || attributes['message']
@parent_id = attributes[:parent_id] || attributes['parent_id'] || nil
@parent_message = attributes[:parent_message] || attributes['parent_message'] || nil
@quoted_message = attributes[:quoted_message] || attributes['quoted_message'] || nil
end
|
Instance Attribute Details
#channel_cid ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 14
def channel_cid
@channel_cid
end
|
#created_at ⇒ DateTime
17
18
19
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 17
def created_at
@created_at
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 20
def message
@message
end
|
#parent_id ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 23
def parent_id
@parent_id
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 26
def parent_message
@parent_message
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 29
def quoted_message
@quoted_message
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/chat_draft_response.rb', line 43
def self.json_field_mappings
{
channel_cid: 'channel_cid',
created_at: 'created_at',
message: 'message',
parent_id: 'parent_id',
parent_message: 'parent_message',
quoted_message: 'quoted_message'
}
end
|