Class: GetStream::Generated::Models::ActionLogResponse
- Defined in:
- lib/getstream_ruby/generated/models/action_log_response.rb
Instance Attribute Summary collapse
- #agent_recommendation ⇒ AgentRecommendationResponse
- #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.
-
#reporter_type ⇒ String
Classification of who triggered the action (e.g. user, moderator, automod, agent_reviewer, api_integration).
- #review_queue_item ⇒ ReviewQueueItemResponse
-
#target_user ⇒ UserResponse
User response object.
-
#target_user_id ⇒ String
ID of the user who was the target of the action.
-
#type ⇒ String
Type of moderation action.
-
#user ⇒ UserResponse
User response object.
-
#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
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 53 def initialize(attributes = {}) super(attributes) @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) } @id = attributes.fetch(:id) { attributes.fetch('id', nil) } @reason = attributes.fetch(:reason) { attributes.fetch('reason', nil) } @reporter_type = attributes.fetch(:reporter_type) { attributes.fetch('reporter_type', nil) } @target_user_id = attributes.fetch(:target_user_id) { attributes.fetch('target_user_id', nil) } @type = attributes.fetch(:type) { attributes.fetch('type', nil) } @user_id = attributes.fetch(:user_id) { attributes.fetch('user_id', nil) } @ai_providers = attributes.fetch(:ai_providers) { attributes.fetch('ai_providers', nil) } @custom = attributes.fetch(:custom) { attributes.fetch('custom', nil) } @agent_recommendation = attributes.fetch(:agent_recommendation) { attributes.fetch('agent_recommendation', nil) } @review_queue_item = attributes.fetch(:review_queue_item) { attributes.fetch('review_queue_item', nil) } @target_user = attributes.fetch(:target_user) { attributes.fetch('target_user', nil) } @user = attributes.fetch(:user) { attributes.fetch('user', nil) } end |
Instance Attribute Details
#agent_recommendation ⇒ AgentRecommendationResponse
41 42 43 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 41 def agent_recommendation @agent_recommendation end |
#ai_providers ⇒ Array<String>
35 36 37 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 35 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. An agent_recommendation log keeps the suggested action under recommended_action.
38 39 40 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 38 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 |
#reporter_type ⇒ String
Returns Classification of who triggered the action (e.g. user, moderator, automod, agent_reviewer, api_integration).
23 24 25 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 23 def reporter_type @reporter_type end |
#review_queue_item ⇒ ReviewQueueItemResponse
44 45 46 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 44 def review_queue_item @review_queue_item end |
#target_user ⇒ UserResponse
Returns User response object.
47 48 49 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 47 def target_user @target_user end |
#target_user_id ⇒ String
Returns ID of the user who was the target of the action.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 26 def target_user_id @target_user_id end |
#type ⇒ String
Returns Type of moderation action.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 29 def type @type end |
#user ⇒ UserResponse
Returns User response object.
50 51 52 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 50 def user @user end |
#user_id ⇒ String
Returns ID of the user who performed the action.
32 33 34 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 32 def user_id @user_id end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/getstream_ruby/generated/models/action_log_response.rb', line 71 def self.json_field_mappings { created_at: 'created_at', id: 'id', reason: 'reason', reporter_type: 'reporter_type', target_user_id: 'target_user_id', type: 'type', user_id: 'user_id', ai_providers: 'ai_providers', custom: 'custom', agent_recommendation: 'agent_recommendation', review_queue_item: 'review_queue_item', target_user: 'target_user', user: 'user' } end |