Class: GetStream::Generated::Models::ModerationFeedbackSubmissionResponse

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

Initialize with attributes



47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/getstream_ruby/generated/models/moderation_feedback_submission_response.rb', line 47

def initialize(attributes = {})
  super(attributes)
  @created_at = attributes.fetch(:created_at) { attributes.fetch('created_at', nil) }
  @item_count = attributes.fetch(:item_count) { attributes.fetch('item_count', nil) }
  @matched_count = attributes.fetch(:matched_count) { attributes.fetch('matched_count', nil) }
  @sent_count = attributes.fetch(:sent_count) { attributes.fetch('sent_count', nil) }
  @items = attributes.fetch(:items) { attributes.fetch('items', nil) }
  @entity_id = attributes.fetch(:entity_id) { attributes.fetch('entity_id', nil) }
  @entity_type = attributes.fetch(:entity_type) { attributes.fetch('entity_type', 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) }
  @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

#created_at ⇒ DateTime

Returns When the submission was made.

Returns:

  • (DateTime) —

    When the submission was made



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

def created_at
  @created_at
end

#current_labels ⇒ Array<String>

Returns Distinct labels the submission's items had.

Returns:

  • (Array<String>) —

    Distinct labels the submission's items had



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

def current_labels
  @current_labels
end

#entity_id ⇒ String

Returns ID of the moderated entity.

Returns:

  • (String) —

    ID of the moderated entity



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

def entity_id
  @entity_id
end

#entity_type ⇒ String

Returns Type of the moderated entity.

Returns:

  • (String) —

    Type of the moderated entity



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

def entity_type
  @entity_type
end

#expected_labels ⇒ Array<String>

Returns Distinct labels the moderator expected across the submission's items.

Returns:

  • (Array<String>) —

    Distinct labels the moderator expected across the submission's items



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

def expected_labels
  @expected_labels
end

#item_count ⇒ Integer

Returns Number of items in the submission, matching the filter or not.

Returns:

  • (Integer) —

    Number of items in the submission, matching the filter or not



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

def item_count
  @item_count
end

#items ⇒ Array<ModerationFeedbackItemResponse>

Returns The submission's items that match the filter.

Returns:



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

def items
  @items
end

#matched_count ⇒ Integer

Returns Number of items in the submission that match the filter, including those left out by item_limit.

Returns:

  • (Integer) —

    Number of items in the submission that match the filter, including those left out by item_limit



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

def matched_count
  @matched_count
end

#reporter_id ⇒ String

Returns Moderator who submitted the feedback.

Returns:

  • (String) —

    Moderator who submitted the feedback



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

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



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

def review_queue_item_id
  @review_queue_item_id
end

#sent_count ⇒ Integer

Returns Number of items in the submission that Bodyguard accepted.

Returns:

  • (Integer) —

    Number of items in the submission that Bodyguard accepted



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

def sent_count
  @sent_count
end

Class Method Details

.json_field_mappings ⇒ Object

Override field mappings for JSON serialization



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/getstream_ruby/generated/models/moderation_feedback_submission_response.rb', line 63

def self.json_field_mappings
  {
    created_at: 'created_at',
    item_count: 'item_count',
    matched_count: 'matched_count',
    sent_count: 'sent_count',
    items: 'items',
    entity_id: 'entity_id',
    entity_type: 'entity_type',
    reporter_id: 'reporter_id',
    review_queue_item_id: 'review_queue_item_id',
    current_labels: 'current_labels',
    expected_labels: 'expected_labels'
  }
end