Class: ModerationAPI::Models::QueueGetStatsResponse::TopReviewer::TopAction

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/queue_get_stats_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(average_time_per_review:, name:, review_count:, top_actions:, user_id:, accuracy_score: nil) ⇒ Object

Parameters:

  • average_time_per_review (Float)

    Average review time in milliseconds

  • name (String)

    Name of the reviewer

  • review_count (Float)

    Number of items reviewed

  • top_actions (Array<ModerationAPI::Models::QueueGetStatsResponse::TopReviewer::TopAction>)

    Most common actions taken by this reviewer

  • user_id (String)

    ID of the reviewer

  • accuracy_score (Float) (defaults to: nil)

    Optional accuracy score based on review quality metrics



158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File 'lib/moderation_api/models/queue_get_stats_response.rb', line 158

class TopAction < ModerationAPI::Internal::Type::BaseModel
  # @!attribute action_id
  #   Most used action by this reviewer
  #
  #   @return [String]
  required :action_id, String, api_name: :actionId

  # @!attribute action_name
  #   Name of the most used action
  #
  #   @return [String]
  required :action_name, String, api_name: :actionName

  # @!attribute count
  #   Number of times this action was used
  #
  #   @return [Float]
  required :count, Float

  # @!method initialize(action_id:, action_name:, count:)
  #   @param action_id [String] Most used action by this reviewer
  #
  #   @param action_name [String] Name of the most used action
  #
  #   @param count [Float] Number of times this action was used
end

Instance Attribute Details

#action_idString

Most used action by this reviewer

Returns:

  • (String)


163
# File 'lib/moderation_api/models/queue_get_stats_response.rb', line 163

required :action_id, String, api_name: :actionId

#action_nameString

Name of the most used action

Returns:

  • (String)


169
# File 'lib/moderation_api/models/queue_get_stats_response.rb', line 169

required :action_name, String, api_name: :actionName

#countFloat

Number of times this action was used

Returns:

  • (Float)


175
# File 'lib/moderation_api/models/queue_get_stats_response.rb', line 175

required :count, Float