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