Class: GetStream::Generated::Models::ModerationFeedbackItemResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/moderation_feedback_item_response.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 = {}) ⇒ ModerationFeedbackItemResponse

Initialize with attributes



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 77

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @id = attributes.fetch(:id) { attributes.fetch('id', nil) }
  @kind = attributes.fetch(:kind) { attributes.fetch('kind', nil) }
  @bodyguard_feedback_id = attributes.fetch(:bodyguard_feedback_id) { attributes.fetch('bodyguard_feedback_id', nil) }
  @bodyguard_sent_at = attributes.fetch(:bodyguard_sent_at) { attributes.fetch('bodyguard_sent_at', nil) }
  @channel_id = attributes.fetch(:channel_id) { attributes.fetch('channel_id', nil) }
  @confidence = attributes.fetch(:confidence) { attributes.fetch('confidence', nil) }
  @current_recommended_action = attributes.fetch(:current_recommended_action) { attributes.fetch('current_recommended_action', nil) }
  @description = attributes.fetch(:description) { attributes.fetch('description', nil) }
  @entity_id = attributes.fetch(:entity_id) { attributes.fetch('entity_id', nil) }
  @entity_type = attributes.fetch(:entity_type) { attributes.fetch('entity_type', nil) }
  @expected_recommended_action = attributes.fetch(:expected_recommended_action) { attributes.fetch('expected_recommended_action', nil) }
  @flag_id = attributes.fetch(:flag_id) { attributes.fetch('flag_id', nil) }
  @image_url = attributes.fetch(:image_url) { attributes.fetch('image_url', nil) }
  @published_at = attributes.fetch(:published_at) { attributes.fetch('published_at', nil) }
  @reference = attributes.fetch(:reference) { attributes.fetch('reference', nil) }
  @reporter_id = attributes.fetch(:reporter_id) { attributes.fetch('reporter_id', nil) }
  @review_queue_item_id = attributes.fetch(:review_queue_item_id) { attributes.fetch('review_queue_item_id', nil) }
  @text = attributes.fetch(:text) { attributes.fetch('text', nil) }
  @current_labels = attributes.fetch(:current_labels) { attributes.fetch('current_labels', nil) }
  @expected_labels = attributes.fetch(:expected_labels) { attributes.fetch('expected_labels', nil) }
end

Instance Attribute Details

#bodyguard_feedback_id ⇒ String

Returns Bodyguard's ID for the delivered feedback.

Returns:

  • (String) —

    Bodyguard's ID for the delivered feedback



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

def bodyguard_feedback_id
  @bodyguard_feedback_id
end

#bodyguard_sent_at ⇒ DateTime

Returns When Bodyguard accepted the feedback; unset if not sent.

Returns:

  • (DateTime) —

    When Bodyguard accepted the feedback; unset if not sent



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

def bodyguard_sent_at
  @bodyguard_sent_at
end

#channel_id ⇒ String

Returns Channel of a single-message feedback.

Returns:

  • (String) —

    Channel of a single-message feedback



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

def channel_id
  @channel_id
end

#confidence ⇒ String

Returns Moderator's confidence.

Returns:

  • (String) —

    Moderator's confidence



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

def confidence
  @confidence
end

#created_at ⇒ DateTime

Returns When the item was submitted; all items of one submission share it.

Returns:

  • (DateTime) —

    When the item was submitted; all items of one submission share it



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

def created_at
  @created_at
end

#current_labels ⇒ Array<String>

Returns Labels the content had.

Returns:

  • (Array<String>) —

    Labels the content had



71
72
73
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 71

def current_labels
  @current_labels
end

Returns Action the content had.

Returns:

  • (String) —

    Action the content had



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

def current_recommended_action
  @current_recommended_action
end

#description ⇒ String

Returns Moderator's description.

Returns:

  • (String) —

    Moderator's description



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

def description
  @description
end

#entity_id ⇒ String

Returns ID of the moderated entity.

Returns:

  • (String) —

    ID of the moderated entity



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

def entity_id
  @entity_id
end

#entity_type ⇒ String

Returns Type of the moderated entity.

Returns:

  • (String) —

    Type of the moderated entity



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

def entity_type
  @entity_type
end

#expected_labels ⇒ Array<String>

Returns Labels the moderator expected.

Returns:

  • (Array<String>) —

    Labels the moderator expected



74
75
76
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 74

def expected_labels
  @expected_labels
end

Returns Action the moderator expected.

Returns:

  • (String) —

    Action the moderator expected



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

def expected_recommended_action
  @expected_recommended_action
end

#flag_id ⇒ String

Returns Flag the feedback disputes.

Returns:

  • (String) —

    Flag the feedback disputes



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

def flag_id
  @flag_id
end

#id ⇒ String

Returns Feedback item ID.

Returns:

  • (String) —

    Feedback item ID



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

def id
  @id
end

#image_url ⇒ String

Returns Image content of the item.

Returns:

  • (String) —

    Image content of the item



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

def image_url
  @image_url
end

#kind ⇒ String

Returns false_positive or false_negative.

Returns:

  • (String) —

    false_positive or false_negative



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

def kind
  @kind
end

#published_at ⇒ String

Returns Publish time of a single-message feedback.

Returns:

  • (String) —

    Publish time of a single-message feedback



56
57
58
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 56

def published_at
  @published_at
end

#reference ⇒ String

Returns Which content of the entity the item is about.

Returns:

  • (String) —

    Which content of the entity the item is about



59
60
61
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 59

def reference
  @reference
end

#reporter_id ⇒ String

Returns Moderator who submitted the feedback.

Returns:

  • (String) —

    Moderator who submitted the feedback



62
63
64
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 62

def reporter_id
  @reporter_id
end

#review_queue_item_id ⇒ String

Returns Review queue item the feedback is about.

Returns:

  • (String) —

    Review queue item the feedback is about



65
66
67
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 65

def review_queue_item_id
  @review_queue_item_id
end

#text ⇒ String

Returns Text content of the item.

Returns:

  • (String) —

    Text content of the item



68
69
70
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 68

def text
  @text
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/getstream_ruby/generated/models/moderation_feedback_item_response.rb', line 103

def self.json_field_mappings
  {
    created_at: 'created_at',
    id: 'id',
    kind: 'kind',
    bodyguard_feedback_id: 'bodyguard_feedback_id',
    bodyguard_sent_at: 'bodyguard_sent_at',
    channel_id: 'channel_id',
    confidence: 'confidence',
    current_recommended_action: 'current_recommended_action',
    description: 'description',
    entity_id: 'entity_id',
    entity_type: 'entity_type',
    expected_recommended_action: 'expected_recommended_action',
    flag_id: 'flag_id',
    image_url: 'image_url',
    published_at: 'published_at',
    reference: 'reference',
    reporter_id: 'reporter_id',
    review_queue_item_id: 'review_queue_item_id',
    text: 'text',
    current_labels: 'current_labels',
    expected_labels: 'expected_labels'
  }
end