Class: GetStream::Generated::Models::ActivityFeedbackEventPayload
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ActivityFeedbackEventPayload
- Defined in:
- lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb
Instance Attribute Summary collapse
-
#action ⇒ String
The type of feedback action.
-
#activity_id ⇒ String
The activity that received feedback.
-
#created_at ⇒ DateTime
When the feedback was created.
-
#updated_at ⇒ DateTime
When the feedback was last updated.
- #user ⇒ UserResponse
-
#value ⇒ String
The feedback value (true/false).
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ActivityFeedbackEventPayload
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ActivityFeedbackEventPayload
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 32 def initialize(attributes = {}) super(attributes) @action = attributes[:action] || attributes['action'] @activity_id = attributes[:activity_id] || attributes['activity_id'] @created_at = attributes[:created_at] || attributes['created_at'] @updated_at = attributes[:updated_at] || attributes['updated_at'] @value = attributes[:value] || attributes['value'] @user = attributes[:user] || attributes['user'] end |
Instance Attribute Details
#action ⇒ String
Returns The type of feedback action.
14 15 16 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 14 def action @action end |
#activity_id ⇒ String
Returns The activity that received feedback.
17 18 19 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 17 def activity_id @activity_id end |
#created_at ⇒ DateTime
Returns When the feedback was created.
20 21 22 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 20 def created_at @created_at end |
#updated_at ⇒ DateTime
Returns When the feedback was last updated.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 23 def updated_at @updated_at end |
#user ⇒ UserResponse
29 30 31 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 29 def user @user end |
#value ⇒ String
Returns The feedback value (true/false).
26 27 28 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 26 def value @value end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 43 def self.json_field_mappings { action: 'action', activity_id: 'activity_id', created_at: 'created_at', updated_at: 'updated_at', value: 'value', user: 'user' } end |