Class: GetStream::Generated::Models::ScheduledMessageChannelResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ScheduledMessageChannelResponse
- Defined in:
- lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb
Overview
The channel of a scheduled message
Instance Attribute Summary collapse
-
#cid ⇒ String
Channel CID (
: ). -
#id ⇒ String
Channel ID.
-
#image ⇒ String
Channel image, from its custom data.
-
#member_count ⇒ Integer
Number of members of the channel.
-
#members ⇒ Array<ChannelMemberResponse>
Up to 4 members of the channel, oldest first.
-
#name ⇒ String
Channel name, from its custom data.
-
#type ⇒ String
Channel type.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ScheduledMessageChannelResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ScheduledMessageChannelResponse
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 35 def initialize(attributes = {}) super(attributes) @cid = attributes.fetch(:cid) { attributes.fetch('cid', nil) } @id = attributes.fetch(:id) { attributes.fetch('id', nil) } @member_count = attributes.fetch(:member_count) { attributes.fetch('member_count', nil) } @type = attributes.fetch(:type) { attributes.fetch('type', nil) } @members = attributes.fetch(:members) { attributes.fetch('members', nil) } @image = attributes.fetch(:image) { attributes.fetch('image', nil) } @name = attributes.fetch(:name) { attributes.fetch('name', nil) } end |
Instance Attribute Details
#cid ⇒ String
Returns Channel CID (
14 15 16 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 14 def cid @cid end |
#id ⇒ String
Returns Channel ID.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 17 def id @id end |
#image ⇒ String
Returns Channel image, from its custom data.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 29 def image @image end |
#member_count ⇒ Integer
Returns Number of members of the channel. 0 when the channel is deleted.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 20 def member_count @member_count end |
#members ⇒ Array<ChannelMemberResponse>
Returns Up to 4 members of the channel, oldest first. Empty when the channel is deleted.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 26 def members @members end |
#name ⇒ String
Returns Channel name, from its custom data.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 32 def name @name end |
#type ⇒ String
Returns Channel type.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 23 def type @type end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/scheduled_message_channel_response.rb', line 47 def self.json_field_mappings { cid: 'cid', id: 'id', member_count: 'member_count', type: 'type', members: 'members', image: 'image', name: 'name' } end |