Class: GetStream::Generated::Models::AppealRequest
- Defined in:
- lib/getstream_ruby/generated/models/appeal_request.rb
Instance Attribute Summary collapse
-
#appeal_reason ⇒ String
Explanation for why the content is being appealed.
-
#attachments ⇒ Array<String>
Array of Attachment URLs(e.g., images).
-
#entity_id ⇒ String
Unique identifier of the entity being appealed.
-
#entity_type ⇒ String
Type of entity being appealed (e.g., message, user).
-
#review_queue_item_id ⇒ String
ID of the review queue item (flagged message) that triggered the ban.
- #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 = {}) ⇒ AppealRequest
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AppealRequest
Initialize with attributes
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 35 def initialize(attributes = {}) super(attributes) @appeal_reason = attributes[:appeal_reason] || attributes['appeal_reason'] @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @review_queue_item_id = attributes[:review_queue_item_id] || attributes['review_queue_item_id'] || nil @user_id = attributes[:user_id] || attributes['user_id'] || nil @attachments = attributes[:attachments] || attributes['attachments'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#appeal_reason ⇒ String
Returns Explanation for why the content is being appealed.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 14 def appeal_reason @appeal_reason end |
#attachments ⇒ Array<String>
Returns Array of Attachment URLs(e.g., images).
29 30 31 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 29 def @attachments end |
#entity_id ⇒ String
Returns Unique identifier of the entity being appealed.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 17 def entity_id @entity_id end |
#entity_type ⇒ String
Returns Type of entity being appealed (e.g., message, user).
20 21 22 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 20 def entity_type @entity_type end |
#review_queue_item_id ⇒ String
Returns ID of the review queue item (flagged message) that triggered the ban. Applicable only for user ban appeals.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 23 def review_queue_item_id @review_queue_item_id end |
#user ⇒ UserRequest
32 33 34 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 32 def user @user end |
#user_id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/appeal_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/appeal_request.rb', line 47 def self.json_field_mappings { appeal_reason: 'appeal_reason', entity_id: 'entity_id', entity_type: 'entity_type', review_queue_item_id: 'review_queue_item_id', user_id: 'user_id', attachments: 'attachments', user: 'user' } end |