Class: GetStream::Generated::Models::AppealItemResponse
- Defined in:
- lib/getstream_ruby/generated/models/appeal_item_response.rb
Instance Attribute Summary collapse
-
#appeal_reason ⇒ String
Reason Text of the Appeal Item.
-
#attachments ⇒ Array<String>
Attachments(e.g. Images) of the Appeal Item.
-
#created_at ⇒ DateTime
When the flag was created.
-
#decision_reason ⇒ String
Decision Reason of the Appeal Item.
- #entity_content ⇒ ModerationPayload
-
#entity_id ⇒ String
ID of the entity.
-
#entity_type ⇒ String
Type of entity.
- #id ⇒ String
-
#status ⇒ String
Status of the Appeal Item.
-
#updated_at ⇒ DateTime
When the flag was last updated.
- #user ⇒ UserResponse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AppealItemResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ AppealItemResponse
Initialize with attributes
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 47 def initialize(attributes = {}) super(attributes) @appeal_reason = attributes[:appeal_reason] || attributes['appeal_reason'] @created_at = attributes[:created_at] || attributes['created_at'] @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @id = attributes[:id] || attributes['id'] @status = attributes[:status] || attributes['status'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @decision_reason = attributes[:decision_reason] || attributes['decision_reason'] || nil = attributes[:attachments] || attributes['attachments'] || nil @entity_content = attributes[:entity_content] || attributes['entity_content'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#appeal_reason ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 14 def appeal_reason @appeal_reason end |
#attachments ⇒ Array<String>
38 39 40 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 38 def end |
#created_at ⇒ DateTime
17 18 19 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 17 def created_at @created_at end |
#decision_reason ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 35 def decision_reason @decision_reason end |
#entity_content ⇒ ModerationPayload
41 42 43 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 41 def entity_content @entity_content end |
#entity_id ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 20 def entity_id @entity_id end |
#entity_type ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 23 def entity_type @entity_type end |
#id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 26 def id @id end |
#status ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 29 def status @status end |
#updated_at ⇒ DateTime
32 33 34 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 32 def updated_at @updated_at end |
#user ⇒ UserResponse
44 45 46 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 44 def user @user end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/getstream_ruby/generated/models/appeal_item_response.rb', line 63 def self.json_field_mappings { appeal_reason: 'appeal_reason', created_at: 'created_at', entity_id: 'entity_id', entity_type: 'entity_type', id: 'id', status: 'status', updated_at: 'updated_at', decision_reason: 'decision_reason', attachments: 'attachments', entity_content: 'entity_content', user: 'user' } end |