Class: GetStream::Generated::Models::UnbanRequest
- Defined in:
- lib/getstream_ruby/generated/models/unban_request.rb
Instance Attribute Summary collapse
-
#unbanned_by ⇒ UserRequest
User request object.
-
#unbanned_by_id ⇒ Object
deprecated
Deprecated.
This field is deprecated. @return [String] ID of the user performing the unban Deprecated: not used by the unban flow
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ UnbanRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ UnbanRequest
Initialize with attributes
21 22 23 24 25 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 21 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_by ⇒ UserRequest
Returns User request object.
18 19 20 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 18 def unbanned_by @unbanned_by end |
#unbanned_by_id ⇒ Object
Deprecated.
This field is deprecated. @return [String] ID of the user performing the unban Deprecated: not used by the unban flow
Model attributes
15 16 17 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 15 def unbanned_by_id @unbanned_by_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
28 29 30 31 32 33 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 28 def self.json_field_mappings { unbanned_by_id: 'unbanned_by_id', unbanned_by: 'unbanned_by' } end |