Class: ModerationAPI::Models::AuthorCreateResponse::Metrics
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::AuthorCreateResponse::Metrics
- Defined in:
- lib/moderation_api/models/author_create_response.rb,
sig/moderation_api/models/author_create_response.rbs
Overview
Instance Attribute Summary collapse
-
#average_sentiment ⇒ Float?
Average sentiment score of content (-1 to 1).
-
#flagged_content ⇒ Float
Number of flagged content pieces.
-
#total_content ⇒ Float
Total pieces of content.
Instance Method Summary collapse
- #initialize ⇒ Object constructor
- #to_hash ⇒ {
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 ⇒ Object
152 |
# File 'sig/moderation_api/models/author_create_response.rbs', line 152
def initialize: (
|
Instance Attribute Details
#average_sentiment ⇒ Float?
Average sentiment score of content (-1 to 1). Requires a sentiment model in your project.
218 |
# File 'lib/moderation_api/models/author_create_response.rb', line 218 optional :average_sentiment, Float, nil?: true |
#flagged_content ⇒ Float
Number of flagged content pieces
205 |
# File 'lib/moderation_api/models/author_create_response.rb', line 205 required :flagged_content, Float |
#total_content ⇒ Float
Total pieces of content
211 |
# File 'lib/moderation_api/models/author_create_response.rb', line 211 required :total_content, Float |
Instance Method Details
#to_hash ⇒ {
158 |
# File 'sig/moderation_api/models/author_create_response.rbs', line 158
def to_hash: -> {
|