Class: GetStream::Generated::Models::UnbanRequest
- Defined in:
- lib/getstream_ruby/generated/models/unban_request.rb
Instance Attribute Summary collapse
-
#unbanned_by ⇒ Object
deprecated
Deprecated.
This field is deprecated. @return [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
22 23 24 25 26 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 22 def initialize(attributes = {}) super(attributes) @unbanned_by_id = attributes.fetch(:unbanned_by_id) { attributes.fetch('unbanned_by_id', nil) } @unbanned_by = attributes.fetch(:unbanned_by) { attributes.fetch('unbanned_by', nil) } end |
Instance Attribute Details
#unbanned_by ⇒ Object
Deprecated.
This field is deprecated. @return [UserRequest] User request object
19 20 21 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 19 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
29 30 31 32 33 34 |
# File 'lib/getstream_ruby/generated/models/unban_request.rb', line 29 def self.json_field_mappings { unbanned_by_id: 'unbanned_by_id', unbanned_by: 'unbanned_by' } end |