Class: GetStream::Generated::Models::MessageChangeSet

Inherits:
BaseModel
  • Object
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(attributes = {}) ⇒ MessageChangeSet

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

#attachmentsBoolean

Returns:

  • (Boolean)


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

def attachments
  @attachments
end

#customBoolean

Returns:

  • (Boolean)


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

def custom
  @custom
end

#htmlBoolean

Returns:

  • (Boolean)


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

def html
  @html
end

#mentioned_user_idsBoolean

Returns:

  • (Boolean)


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

def mentioned_user_ids
  @mentioned_user_ids
end

#mmlBoolean

Returns:

  • (Boolean)


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

def mml
  @mml
end

#pinBoolean

Returns:

  • (Boolean)


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

def pin
  @pin
end

#quoted_message_idBoolean

Returns:

  • (Boolean)


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

def quoted_message_id
  @quoted_message_id
end

#silentBoolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/getstream_ruby/generated/models/message_change_set.rb', line 35

def silent
  @silent
end

#textBoolean

Returns:

  • (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_mappingsObject

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