Class: GetStream::Generated::Models::UnbanRequest

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/unban_request.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 = {}) ⇒ UnbanRequest

Initialize with attributes



20
21
22
23
24
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 20

def initialize(attributes = {})
  super(attributes)
  @unbanned_by_id = attributes[:unbanned_by_id] || attributes['unbanned_by_id'] || nil
  @unbanned_by = attributes[:unbanned_by] || attributes['unbanned_by'] || nil
end

Instance Attribute Details

#unbanned_byUserRequest



17
18
19
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 17

def unbanned_by
  @unbanned_by
end

#unbanned_by_idString



14
15
16
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 14

def unbanned_by_id
  @unbanned_by_id
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



27
28
29
30
31
32
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 27

def self.json_field_mappings
  {
    unbanned_by_id: 'unbanned_by_id',
    unbanned_by: 'unbanned_by'
  }
end