Class: GetStream::Generated::Models::Channel
- Defined in:
- lib/getstream_ruby/generated/models/channel.rb
Instance Attribute Summary collapse
- #active_live_locations ⇒ Array<SharedLocation>
- #auto_translation_enabled ⇒ Boolean
- #auto_translation_language ⇒ String
- #cid ⇒ String
- #config ⇒ ChannelConfig
- #config_overrides ⇒ ConfigOverrides
- #cooldown ⇒ Integer
- #created_at ⇒ DateTime
- #created_by ⇒ User
- #custom ⇒ Object
- #deleted_at ⇒ DateTime
- #disabled ⇒ Boolean
- #filter_tags ⇒ Array<String>
- #frozen ⇒ Boolean
- #id ⇒ String
- #invites ⇒ Array<ChannelMember>
- #last_campaigns ⇒ String
- #last_message_at ⇒ DateTime
- #member_count ⇒ Integer
- #members ⇒ Array<ChannelMember>
- #members_lookup ⇒ Hash<String, ChannelMemberLookup>
- #message_count ⇒ Integer
- #message_count_updated_at ⇒ DateTime
- #team ⇒ String
- #truncated_by ⇒ User
- #type ⇒ String
- #updated_at ⇒ DateTime
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Channel
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ Channel
Initialize with attributes
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 95 def initialize(attributes = {}) super(attributes) @auto_translation_language = attributes[:auto_translation_language] || attributes['auto_translation_language'] @cid = attributes[:cid] || attributes['cid'] @created_at = attributes[:created_at] || attributes['created_at'] @disabled = attributes[:disabled] || attributes['disabled'] @frozen = attributes[:frozen] || attributes['frozen'] @id = attributes[:id] || attributes['id'] @type = attributes[:type] || attributes['type'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @custom = attributes[:custom] || attributes['custom'] @auto_translation_enabled = attributes[:auto_translation_enabled] || attributes['auto_translation_enabled'] || nil @cooldown = attributes[:cooldown] || attributes['cooldown'] || nil @deleted_at = attributes[:deleted_at] || attributes['deleted_at'] || nil @last_campaigns = attributes[:last_campaigns] || attributes['last_campaigns'] || nil = attributes[:last_message_at] || attributes['last_message_at'] || nil @member_count = attributes[:member_count] || attributes['member_count'] || nil = attributes[:message_count] || attributes['message_count'] || nil = attributes[:message_count_updated_at] || attributes['message_count_updated_at'] || nil @team = attributes[:team] || attributes['team'] || nil @active_live_locations = attributes[:active_live_locations] || attributes['active_live_locations'] || nil = attributes[:filter_tags] || attributes['filter_tags'] || nil @invites = attributes[:invites] || attributes['invites'] || nil @members = attributes[:members] || attributes['members'] || nil @config = attributes[:config] || attributes['config'] || nil @config_overrides = attributes[:config_overrides] || attributes['config_overrides'] || nil @created_by = attributes[:created_by] || attributes['created_by'] || nil @members_lookup = attributes[:members_lookup] || attributes['members_lookup'] || nil @truncated_by = attributes[:truncated_by] || attributes['truncated_by'] || nil end |
Instance Attribute Details
#active_live_locations ⇒ Array<SharedLocation>
68 69 70 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 68 def active_live_locations @active_live_locations end |
#auto_translation_enabled ⇒ Boolean
41 42 43 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 41 def auto_translation_enabled @auto_translation_enabled end |
#auto_translation_language ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 14 def auto_translation_language @auto_translation_language end |
#cid ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 17 def cid @cid end |
#config ⇒ ChannelConfig
80 81 82 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 80 def config @config end |
#config_overrides ⇒ ConfigOverrides
83 84 85 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 83 def config_overrides @config_overrides end |
#cooldown ⇒ Integer
44 45 46 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 44 def cooldown @cooldown end |
#created_at ⇒ DateTime
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 20 def created_at @created_at end |
#created_by ⇒ User
86 87 88 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 86 def created_by @created_by end |
#custom ⇒ Object
38 39 40 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 38 def custom @custom end |
#deleted_at ⇒ DateTime
47 48 49 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 47 def deleted_at @deleted_at end |
#disabled ⇒ Boolean
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 23 def disabled @disabled end |
#filter_tags ⇒ Array<String>
71 72 73 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 71 def end |
#frozen ⇒ Boolean
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 26 def frozen @frozen end |
#id ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 29 def id @id end |
#invites ⇒ Array<ChannelMember>
74 75 76 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 74 def invites @invites end |
#last_campaigns ⇒ String
50 51 52 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 50 def last_campaigns @last_campaigns end |
#last_message_at ⇒ DateTime
53 54 55 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 53 def end |
#member_count ⇒ Integer
56 57 58 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 56 def member_count @member_count end |
#members ⇒ Array<ChannelMember>
77 78 79 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 77 def members @members end |
#members_lookup ⇒ Hash<String, ChannelMemberLookup>
89 90 91 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 89 def members_lookup @members_lookup end |
#message_count ⇒ Integer
59 60 61 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 59 def end |
#message_count_updated_at ⇒ DateTime
62 63 64 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 62 def end |
#team ⇒ String
65 66 67 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 65 def team @team end |
#truncated_by ⇒ User
92 93 94 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 92 def truncated_by @truncated_by end |
#type ⇒ String
32 33 34 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 32 def type @type end |
#updated_at ⇒ DateTime
35 36 37 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 35 def updated_at @updated_at end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/getstream_ruby/generated/models/channel.rb', line 127 def self.json_field_mappings { auto_translation_language: 'auto_translation_language', cid: 'cid', created_at: 'created_at', disabled: 'disabled', frozen: 'frozen', id: 'id', type: 'type', updated_at: 'updated_at', custom: 'custom', auto_translation_enabled: 'auto_translation_enabled', cooldown: 'cooldown', deleted_at: 'deleted_at', last_campaigns: 'last_campaigns', last_message_at: 'last_message_at', member_count: 'member_count', message_count: 'message_count', message_count_updated_at: 'message_count_updated_at', team: 'team', active_live_locations: 'active_live_locations', filter_tags: 'filter_tags', invites: 'invites', members: 'members', config: 'config', config_overrides: 'config_overrides', created_by: 'created_by', members_lookup: 'members_lookup', truncated_by: 'truncated_by' } end |