Class: GetStream::Generated::Models::SubmitActionResponse
- Defined in:
- lib/getstream_ruby/generated/models/submit_action_response.rb
Instance Attribute Summary collapse
- #appeal_item ⇒ AppealItemResponse
-
#auto_restore_warning ⇒ String
Present when the appeal was accepted but the entity could not be restored automatically.
- #duration ⇒ String
- #item ⇒ ReviewQueueItemResponse
-
#item_id ⇒ String
ID of the review queue item the action was performed on.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ SubmitActionResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ SubmitActionResponse
Initialize with attributes
29 30 31 32 33 34 35 36 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 29 def initialize(attributes = {}) super(attributes) @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) } @auto_restore_warning = attributes.fetch(:auto_restore_warning) { attributes.fetch('auto_restore_warning', nil) } @item_id = attributes.fetch(:item_id) { attributes.fetch('item_id', nil) } @appeal_item = attributes.fetch(:appeal_item) { attributes.fetch('appeal_item', nil) } @item = attributes.fetch(:item) { attributes.fetch('item', nil) } end |
Instance Attribute Details
#appeal_item ⇒ AppealItemResponse
23 24 25 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 23 def appeal_item @appeal_item end |
#auto_restore_warning ⇒ String
Returns Present when the appeal was accepted but the entity could not be restored automatically. The moderator should restore it manually.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 17 def auto_restore_warning @auto_restore_warning end |
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 14 def duration @duration end |
#item ⇒ ReviewQueueItemResponse
26 27 28 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 26 def item @item end |
#item_id ⇒ String
Returns ID of the review queue item the action was performed on.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 20 def item_id @item_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39 40 41 42 43 44 45 46 47 |
# File 'lib/getstream_ruby/generated/models/submit_action_response.rb', line 39 def self.json_field_mappings { duration: 'duration', auto_restore_warning: 'auto_restore_warning', item_id: 'item_id', appeal_item: 'appeal_item', item: 'item' } end |