Class: GetStream::Generated::Models::ActionLogResponse
- Defined in:
- lib/getstream_ruby/generated/models/action_log_response.rb
Instance Attribute Summary collapse
- #ai_providers ⇒ Array<String>
-
#created_at ⇒ DateTime
Timestamp when the action was taken.
-
#custom ⇒ Object
Additional metadata about the action.
-
#id ⇒ String
Unique identifier of the action log.
-
#reason ⇒ String
Reason for the moderation action.
- #review_queue_item ⇒ ReviewQueueItemResponse
- #target_user ⇒ UserResponse
-
#target_user_id ⇒ String
ID of the user who was the target of the action.
-
#type ⇒ String
Type of moderation action.
- #user ⇒ UserResponse
-
#user_id ⇒ String
ID of the user who performed the action.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ActionLogResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ActionLogResponse
Initialize with attributes
47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 47 def initialize(attributes = {}) super(attributes) @created_at = attributes[:created_at] || attributes['created_at'] @id = attributes[:id] || attributes['id'] @reason = attributes[:reason] || attributes['reason'] @target_user_id = attributes[:target_user_id] || attributes['target_user_id'] @type = attributes[:type] || attributes['type'] @user_id = attributes[:user_id] || attributes['user_id'] @ai_providers = attributes[:ai_providers] || attributes['ai_providers'] @custom = attributes[:custom] || attributes['custom'] @review_queue_item = attributes[:review_queue_item] || attributes['review_queue_item'] || nil @target_user = attributes[:target_user] || attributes['target_user'] || nil @user = attributes[:user] || attributes['user'] || nil end |
Instance Attribute Details
#ai_providers ⇒ Array<String>
32 33 34 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 32 def ai_providers @ai_providers end |
#created_at ⇒ DateTime
Returns Timestamp when the action was taken.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 14 def created_at @created_at end |
#custom ⇒ Object
Returns Additional metadata about the action.
35 36 37 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 35 def custom @custom end |
#id ⇒ String
Returns Unique identifier of the action log.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 17 def id @id end |
#reason ⇒ String
Returns Reason for the moderation action.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 20 def reason @reason end |
#review_queue_item ⇒ ReviewQueueItemResponse
38 39 40 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 38 def review_queue_item @review_queue_item end |
#target_user ⇒ UserResponse
41 42 43 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 41 def target_user @target_user end |
#target_user_id ⇒ String
Returns ID of the user who was the target of the action.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 23 def target_user_id @target_user_id end |
#type ⇒ String
Returns Type of moderation action.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 26 def type @type end |
#user ⇒ UserResponse
44 45 46 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 44 def user @user end |
#user_id ⇒ String
Returns ID of the user who performed the action.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 29 def user_id @user_id 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/action_log_response.rb', line 63 def self.json_field_mappings { created_at: 'created_at', id: 'id', reason: 'reason', target_user_id: 'target_user_id', type: 'type', user_id: 'user_id', ai_providers: 'ai_providers', custom: 'custom', review_queue_item: 'review_queue_item', target_user: 'target_user', user: 'user' } end |