Class: GetStream::Generated::Models::DenormalizedChannelFields
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::DenormalizedChannelFields
show all
- Defined in:
- lib/getstream_ruby/generated/models/denormalized_channel_fields.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 47
def initialize(attributes = {})
super(attributes)
@created_at = attributes[:created_at] || attributes['created_at'] || nil
@created_by_id = attributes[:created_by_id] || attributes['created_by_id'] || nil
@disabled = attributes[:disabled] || attributes['disabled'] || nil
@frozen = attributes[:frozen] || attributes['frozen'] || nil
@id = attributes[:id] || attributes['id'] || nil
@last_message_at = attributes[:last_message_at] || attributes['last_message_at'] || nil
@member_count = attributes[:member_count] || attributes['member_count'] || nil
@team = attributes[:team] || attributes['team'] || nil
@type = attributes[:type] || attributes['type'] || nil
@updated_at = attributes[:updated_at] || attributes['updated_at'] || nil
@custom = attributes[:custom] || attributes['custom'] || nil
end
|
Instance Attribute Details
#created_at ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 14
def created_at
@created_at
end
|
#created_by_id ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 17
def created_by_id
@created_by_id
end
|
#custom ⇒ Object
44
45
46
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 44
def custom
@custom
end
|
#disabled ⇒ Boolean
20
21
22
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 20
def disabled
@disabled
end
|
#frozen ⇒ Boolean
23
24
25
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 23
def frozen
@frozen
end
|
#id ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 26
def id
@id
end
|
#last_message_at ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 29
def last_message_at
@last_message_at
end
|
#member_count ⇒ Integer
32
33
34
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 32
def member_count
@member_count
end
|
#team ⇒ String
35
36
37
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 35
def team
@team
end
|
#type ⇒ String
38
39
40
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 38
def type
@type
end
|
#updated_at ⇒ String
41
42
43
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 41
def updated_at
@updated_at
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# File 'lib/getstream_ruby/generated/models/denormalized_channel_fields.rb', line 63
def self.json_field_mappings
{
created_at: 'created_at',
created_by_id: 'created_by_id',
disabled: 'disabled',
frozen: 'frozen',
id: 'id',
last_message_at: 'last_message_at',
member_count: 'member_count',
team: 'team',
type: 'type',
updated_at: 'updated_at',
custom: 'custom'
}
end
|