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).
- #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
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 32 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'] @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
14 15 16 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 14 def appeal_reason @appeal_reason end |
#attachments ⇒ Array<String>
26 27 28 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 26 def @attachments end |
#entity_id ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 17 def entity_id @entity_id end |
#entity_type ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 20 def entity_type @entity_type end |
#user ⇒ UserRequest
29 30 31 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 29 def user @user end |
#user_id ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 23 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/appeal_request.rb', line 43 def self.json_field_mappings { appeal_reason: 'appeal_reason', entity_id: 'entity_id', entity_type: 'entity_type', user_id: 'user_id', attachments: 'attachments', user: 'user' } end |