Class: GetStream::Generated::Models::GetFlagCountRequest
- Defined in:
- lib/getstream_ruby/generated/models/get_flag_count_request.rb
Instance Attribute Summary collapse
-
#entity_creator_id ⇒ String
ID of the user whose content was flagged.
-
#entity_type ⇒ String
Optional entity type filter (e.g., stream:chat:v1:message, stream:user).
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ GetFlagCountRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ GetFlagCountRequest
Initialize with attributes
20 21 22 23 24 |
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 20 def initialize(attributes = {}) super(attributes) @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] || nil end |
Instance Attribute Details
#entity_creator_id ⇒ String
Returns ID of the user whose content was flagged.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 14 def entity_creator_id @entity_creator_id end |
#entity_type ⇒ String
Returns Optional entity type filter (e.g., stream:chat:v1:message, stream:user).
17 18 19 |
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 17 def entity_type @entity_type end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/get_flag_count_request.rb', line 27 def self.json_field_mappings { entity_creator_id: 'entity_creator_id', entity_type: 'entity_type' } end |