Class: ModerationAPI::Models::QueueGetStatsResponse::ActionStat

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(action_stats:, review_stats:, top_reviewers:, trends:) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/moderation_api/models/queue_get_stats_response.rb', line 43

class ActionStat < ModerationAPI::Internal::Type::BaseModel
  # @!attribute action_id
  #   ID of the moderation action
  #
  #   @return [String]
  required :action_id, String, api_name: :actionId

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

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

  # @!attribute percentage_of_total
  #   Percentage this action represents of all actions
  #
  #   @return [Float]
  required :percentage_of_total, Float, api_name: :percentageOfTotal

  # @!method initialize(action_id:, action_name:, count:, percentage_of_total:)
  #   @param action_id [String] ID of the moderation action
  #
  #   @param action_name [String] Name of the moderation action
  #
  #   @param count [Float] Number of times this action was taken
  #
  #   @param percentage_of_total [Float] Percentage this action represents of all actions
end

Instance Attribute Details

#action_idString

ID of the moderation action

Returns:

  • (String)


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

required :action_id, String, api_name: :actionId

#action_nameString

Name of the moderation action

Returns:

  • (String)


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

required :action_name, String, api_name: :actionName

#countFloat

Number of times this action was taken

Returns:

  • (Float)


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

required :count, Float

#percentage_of_totalFloat

Percentage this action represents of all actions

Returns:

  • (Float)


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

required :percentage_of_total, Float, api_name: :percentageOfTotal