Class: GetStream::Generated::Models::ChannelMute
- Defined in:
- lib/getstream_ruby/generated/models/channel_mute.rb
Instance Attribute Summary collapse
- #channel ⇒ ChannelResponse
-
#created_at ⇒ DateTime
Date/time of creation.
-
#expires ⇒ DateTime
Date/time of mute expiration.
-
#updated_at ⇒ DateTime
Date/time of the last update.
- #user ⇒ UserResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChannelMute
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChannelMute
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 29 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @expires = attributes[:expires] || attributes['expires'] || nil @channel = attributes[:channel] || attributes['channel'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#channel ⇒ ChannelResponse
23 24 25 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 23 def channel @channel end |
#created_at ⇒ DateTime
Returns Date/time of creation.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 14 def created_at @created_at end |
#expires ⇒ DateTime
Returns Date/time of mute expiration.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 20 def expires @expires end |
#updated_at ⇒ DateTime
Returns Date/time of the last update.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 17 def updated_at @updated_at end |
#user ⇒ UserResponse
26 27 28 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 26 def user @user end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/channel_mute.rb', line 39 def self.json_field_mappings { created_at: 'created_at', updated_at: 'updated_at', expires: 'expires', channel: 'channel', user: 'user' } end |