Class: GetStream::Generated::Models::MessageChangeSet
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::MessageChangeSet
show all
- Defined in:
- lib/getstream_ruby/generated/models/message_change_set.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
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 41
def initialize(attributes = {})
super(attributes)
@attachments = attributes[:attachments] || attributes['attachments']
@custom = attributes[:custom] || attributes['custom']
@html = attributes[:html] || attributes['html']
@mentioned_user_ids = attributes[:mentioned_user_ids] || attributes['mentioned_user_ids']
@mml = attributes[:mml] || attributes['mml']
@pin = attributes[:pin] || attributes['pin']
@quoted_message_id = attributes[:quoted_message_id] || attributes['quoted_message_id']
@silent = attributes[:silent] || attributes['silent']
@text = attributes[:text] || attributes['text']
end
|
Instance Attribute Details
#attachments ⇒ Boolean
14
15
16
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 14
def attachments
@attachments
end
|
#custom ⇒ Boolean
17
18
19
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 17
def custom
@custom
end
|
#html ⇒ Boolean
20
21
22
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 20
def html
@html
end
|
#mentioned_user_ids ⇒ Boolean
23
24
25
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 23
def mentioned_user_ids
@mentioned_user_ids
end
|
#mml ⇒ Boolean
26
27
28
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 26
def mml
@mml
end
|
#pin ⇒ Boolean
29
30
31
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 29
def pin
@pin
end
|
#quoted_message_id ⇒ Boolean
32
33
34
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 32
def quoted_message_id
@quoted_message_id
end
|
#silent ⇒ Boolean
35
36
37
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 35
def silent
@silent
end
|
#text ⇒ Boolean
38
39
40
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 38
def text
@text
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 55
def self.json_field_mappings
{
attachments: 'attachments',
custom: 'custom',
html: 'html',
mentioned_user_ids: 'mentioned_user_ids',
mml: 'mml',
pin: 'pin',
quoted_message_id: 'quoted_message_id',
silent: 'silent',
text: 'text'
}
end
|