Class: GetStream::Generated::Models::SubmitAgentFeedbackResponse

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

Overview

The stored moderator correction

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 = {}) ⇒ SubmitAgentFeedbackResponse

Initialize with attributes



56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 56

def initialize(attributes = {})
  super(attributes)
  @agent_review_id = attributes.fetch(:agent_review_id) { attributes.fetch('agent_review_id', nil) }
  @content_excerpt = attributes.fetch(:content_excerpt) { attributes.fetch('content_excerpt', nil) }
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @created_by = attributes.fetch(:created_by) { attributes.fetch('created_by', nil) }
  @duration = attributes.fetch(:duration) { attributes.fetch('duration', nil) }
  @entity_type = attributes.fetch(:entity_type) { attributes.fetch('entity_type', nil) }
  @id = attributes.fetch(:id) { attributes.fetch('id', nil) }
  @improvement = attributes.fetch(:improvement) { attributes.fetch('improvement', nil) }
  @item_id = attributes.fetch(:item_id) { attributes.fetch('item_id', nil) }
  @moderator_action = attributes.fetch(:moderator_action) { attributes.fetch('moderator_action', nil) }
  @nora_action = attributes.fetch(:nora_action) { attributes.fetch('nora_action', nil) }
  @reason = attributes.fetch(:reason) { attributes.fetch('reason', nil) }
  @updated_at = attributes.fetch(:updated_at) { attributes.fetch('updated_at', nil) }
  @labels = attributes.fetch(:labels) { attributes.fetch('labels', nil) }
end

Instance Attribute Details

#agent_review_id ⇒ String

Returns Nora review this correction is about.

Returns:

  • (String) —

    Nora review this correction is about



14
15
16
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 14

def agent_review_id
  @agent_review_id
end

#content_excerpt ⇒ String

Returns Text of the item when the correction was saved.

Returns:

  • (String) —

    Text of the item when the correction was saved



17
18
19
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 17

def content_excerpt
  @content_excerpt
end

#created_at ⇒ DateTime

Returns When the correction was first saved.

Returns:

  • (DateTime) —

    When the correction was first saved



20
21
22
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 20

def created_at
  @created_at
end

#created_by ⇒ String

Returns Moderator who submitted the correction.

Returns:

  • (String) —

    Moderator who submitted the correction



23
24
25
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 23

def created_by
  @created_by
end

#duration ⇒ String

Returns:

  • (String)


26
27
28
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 26

def duration
  @duration
end

#entity_type ⇒ String

Returns Entity type of the queue item.

Returns:

  • (String) —

    Entity type of the queue item



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

def entity_type
  @entity_type
end

#id ⇒ String

Returns Feedback row id.

Returns:

  • (String) —

    Feedback row id



32
33
34
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 32

def id
  @id
end

#improvement ⇒ String

Returns How similar cases should be judged.

Returns:

  • (String) —

    How similar cases should be judged



35
36
37
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 35

def improvement
  @improvement
end

#item_id ⇒ String

Returns Review queue item the correction is about.

Returns:

  • (String) —

    Review queue item the correction is about



38
39
40
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 38

def item_id
  @item_id
end

#labels ⇒ Array<String>

Returns Labels Nora matched on this review.

Returns:

  • (Array<String>) —

    Labels Nora matched on this review



53
54
55
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 53

def labels
  @labels
end

#moderator_action ⇒ String

Returns Action the moderator took.

Returns:

  • (String) —

    Action the moderator took



41
42
43
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 41

def moderator_action
  @moderator_action
end

#nora_action ⇒ String

Returns Policy action Nora recommended.

Returns:

  • (String) —

    Policy action Nora recommended



44
45
46
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 44

def nora_action
  @nora_action
end

#reason ⇒ String

Returns Why the moderator disagreed.

Returns:

  • (String) —

    Why the moderator disagreed



47
48
49
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 47

def reason
  @reason
end

#updated_at ⇒ DateTime

Returns When the correction was last saved.

Returns:

  • (DateTime) —

    When the correction was last saved



50
51
52
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 50

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/getstream_ruby/generated/models/submit_agent_feedback_response.rb', line 75

def self.json_field_mappings
  {
    agent_review_id: 'agent_review_id',
    content_excerpt: 'content_excerpt',
    created_at: 'created_at',
    created_by: 'created_by',
    duration: 'duration',
    entity_type: 'entity_type',
    id: 'id',
    improvement: 'improvement',
    item_id: 'item_id',
    moderator_action: 'moderator_action',
    nora_action: 'nora_action',
    reason: 'reason',
    updated_at: 'updated_at',
    labels: 'labels'
  }
end