Class: GetStream::Generated::Models::CampaignChannelTemplate
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CampaignChannelTemplate
show all
- Defined in:
- lib/getstream_ruby/generated/models/campaign_channel_template.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/campaign_channel_template.rb', line 32
def initialize(attributes = {})
super(attributes)
@type = attributes[:type] || attributes['type']
@custom = attributes[:custom] || attributes['custom']
@id = attributes[:id] || attributes['id'] || nil
@team = attributes[:team] || attributes['team'] || nil
@members = attributes[:members] || attributes['members'] || nil
@members_template = attributes[:members_template] || attributes['members_template'] || nil
end
|
Instance Attribute Details
#custom ⇒ Object
17
18
19
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 17
def custom
@custom
end
|
#id ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 20
def id
@id
end
|
#members ⇒ Array<String>
26
27
28
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 26
def members
@members
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 29
def members_template
@members_template
end
|
#team ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 23
def team
@team
end
|
#type ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/campaign_channel_template.rb', line 14
def type
@type
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/campaign_channel_template.rb', line 43
def self.json_field_mappings
{
type: 'type',
custom: 'custom',
id: 'id',
team: 'team',
members: 'members',
members_template: 'members_template'
}
end
|