Class: GetStream::Generated::Models::ModerationFlagResponse
- Defined in:
- lib/getstream_ruby/generated/models/moderation_flag_response.rb
Instance Attribute Summary collapse
- #created_at ⇒ DateTime
- #custom ⇒ Object
- #entity_creator_id ⇒ String
- #entity_id ⇒ String
- #entity_type ⇒ String
- #labels ⇒ Array<String>
- #moderation_payload ⇒ ModerationPayload
- #reason ⇒ String
- #result ⇒ Array<Object>
- #review_queue_item ⇒ ReviewQueueItemResponse
- #review_queue_item_id ⇒ String
- #type ⇒ String
- #updated_at ⇒ DateTime
- #user ⇒ UserResponse
- #user_id ⇒ String
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ModerationFlagResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ModerationFlagResponse
Initialize with attributes
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 59 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @entity_id = attributes[:entity_id] || attributes['entity_id'] @entity_type = attributes[:entity_type] || attributes['entity_type'] @type = attributes[:type] || attributes['type'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @user_id = attributes[:user_id] || attributes['user_id'] @result = attributes[:result] || attributes['result'] @entity_creator_id = attributes[:entity_creator_id] || attributes['entity_creator_id'] || nil @reason = attributes[:reason] || attributes['reason'] || nil @review_queue_item_id = attributes[:review_queue_item_id] || attributes['review_queue_item_id'] || nil @labels = attributes[:labels] || attributes['labels'] || nil @custom = attributes[:custom] || attributes['custom'] || nil @moderation_payload = attributes[:moderation_payload] || attributes['moderation_payload'] || nil @review_queue_item = attributes[:review_queue_item] || attributes['review_queue_item'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#created_at ⇒ DateTime
14 15 16 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
47 48 49 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 47 def custom @custom end |
#entity_creator_id ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 35 def entity_creator_id @entity_creator_id end |
#entity_id ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 17 def entity_id @entity_id end |
#entity_type ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 20 def entity_type @entity_type end |
#labels ⇒ Array<String>
44 45 46 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 44 def labels @labels end |
#moderation_payload ⇒ ModerationPayload
50 51 52 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 50 def moderation_payload @moderation_payload end |
#reason ⇒ String
38 39 40 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 38 def reason @reason end |
#result ⇒ Array<Object>
32 33 34 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 32 def result @result end |
#review_queue_item ⇒ ReviewQueueItemResponse
53 54 55 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 53 def review_queue_item @review_queue_item end |
#review_queue_item_id ⇒ String
41 42 43 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 41 def review_queue_item_id @review_queue_item_id end |
#type ⇒ String
23 24 25 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 23 def type @type end |
#updated_at ⇒ DateTime
26 27 28 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 26 def updated_at @updated_at end |
#user ⇒ UserResponse
56 57 58 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 56 def user @user end |
#user_id ⇒ String
29 30 31 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 29 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/getstream_ruby/generated/models/moderation_flag_response.rb', line 79 def self.json_field_mappings { created_at: 'created_at', entity_id: 'entity_id', entity_type: 'entity_type', type: 'type', updated_at: 'updated_at', user_id: 'user_id', result: 'result', entity_creator_id: 'entity_creator_id', reason: 'reason', review_queue_item_id: 'review_queue_item_id', labels: 'labels', custom: 'custom', moderation_payload: 'moderation_payload', review_queue_item: 'review_queue_item', user: 'user' } end |