Class: GetStream::Generated::Models::ActivityFeedbackEventPayload

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#actionString

Returns The type of feedback action.

Returns:

  • (String)

    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_idString

Returns The activity that received feedback.

Returns:

  • (String)

    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_atDateTime

Returns When the feedback was created.

Returns:

  • (DateTime)

    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_atDateTime

Returns When the feedback was last updated.

Returns:

  • (DateTime)

    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

#userUserResponse

Returns:



29
30
31
# File 'lib/getstream_ruby/generated/models/activity_feedback_event_payload.rb', line 29

def user
  @user
end

#valueString

Returns The feedback value (true/false).

Returns:

  • (String)

    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_mappingsObject

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