Class: GetStream::Generated::Models::CustomCheckRequest
- Defined in:
- lib/getstream_ruby/generated/models/custom_check_request.rb
Instance Attribute Summary collapse
-
#entity_creator_id ⇒ String
ID of the user who created the entity (required for non-message entities).
-
#entity_id ⇒ String
Unique identifier of the entity.
-
#entity_type ⇒ String
Type of entity to perform custom check on.
-
#flags ⇒ Array<CustomCheckFlag>
List of custom check flags (1-10 flags required).
- #moderation_payload ⇒ ModerationPayload
- #user ⇒ UserRequest
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CustomCheckRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ CustomCheckRequest
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 35 def initialize(attributes = {}) super(attributes) @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @flags = attributes[:flags] || attributes['flags'] @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @moderation_payload = attributes[:moderation_payload] || attributes['moderation_payload'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#entity_creator_id ⇒ String
Returns ID of the user who created the entity (required for non-message entities).
23 24 25 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 23 def entity_creator_id @entity_creator_id end |
#entity_id ⇒ String
Returns Unique identifier of the entity.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 14 def entity_id @entity_id end |
#entity_type ⇒ String
Returns Type of entity to perform custom check on.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 17 def entity_type @entity_type end |
#flags ⇒ Array<CustomCheckFlag>
Returns List of custom check flags (1-10 flags required).
20 21 22 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 20 def flags @flags end |
#moderation_payload ⇒ ModerationPayload
29 30 31 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 29 def moderation_payload @moderation_payload end |
#user ⇒ UserRequest
32 33 34 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 32 def user @user end |
#user_id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 26 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/getstream_ruby/generated/models/custom_check_request.rb', line 47 def self.json_field_mappings { entity_id: 'entity_id', entity_type: 'entity_type', flags: 'flags', entity_creator_id: 'entity_creator_id', user_id: 'user_id', moderation_payload: 'moderation_payload', user: 'user' } end |