Class: GetStream::Generated::Models::BlockUserRequest
- Defined in:
- lib/getstream_ruby/generated/models/block_user_request.rb
Overview
BlockUserRequest is the payload for blocking a user.
Instance Attribute Summary collapse
-
#user_id ⇒ String
The user to block.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ BlockUserRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ BlockUserRequest
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/block_user_request.rb', line 17 def initialize(attributes = {}) super(attributes) @user_id = attributes[:user_id] || attributes['user_id'] end |
Instance Attribute Details
#user_id ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/block_user_request.rb', line 14 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
23 24 25 26 27 |
# File 'lib/getstream_ruby/generated/models/block_user_request.rb', line 23 def self.json_field_mappings { user_id: 'user_id' } end |