Class: GetStream::Generated::Models::DeleteReactionRequestPayload
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::DeleteReactionRequestPayload
- Defined in:
- lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb
Overview
Configuration for reaction deletion action
Instance Attribute Summary collapse
-
#entity_id ⇒ String
ID of the reaction to delete (alternative to item_id).
-
#entity_type ⇒ String
Type of the entity.
-
#hard_delete ⇒ Boolean
Whether to permanently delete the reaction.
-
#reason ⇒ String
Reason for deletion.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DeleteReactionRequestPayload
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ DeleteReactionRequestPayload
Initialize with attributes
26 27 28 29 30 31 32 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 26 def initialize(attributes = {}) super(attributes) @entity_id = attributes[:entity_id] || attributes['entity_id'] || nil @entity_type = attributes[:entity_type] || attributes['entity_type'] || nil @hard_delete = attributes[:hard_delete] || attributes['hard_delete'] || nil @reason = attributes[:reason] || attributes['reason'] || nil end |
Instance Attribute Details
#entity_id ⇒ String
Returns ID of the reaction to delete (alternative to item_id).
14 15 16 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 14 def entity_id @entity_id end |
#entity_type ⇒ String
Returns Type of the entity.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 17 def entity_type @entity_type end |
#hard_delete ⇒ Boolean
Returns Whether to permanently delete the reaction.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 20 def hard_delete @hard_delete end |
#reason ⇒ String
Returns Reason for deletion.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 23 def reason @reason end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35 36 37 38 39 40 41 42 |
# File 'lib/getstream_ruby/generated/models/delete_reaction_request_payload.rb', line 35 def self.json_field_mappings { entity_id: 'entity_id', entity_type: 'entity_type', hard_delete: 'hard_delete', reason: 'reason' } end |