Class: ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing
- Defined in:
- lib/moderation_api/models/content_submit_params.rb,
sig/moderation_api/models/content_submit_params.rbs
Defined Under Namespace
Classes: Signal
Instance Attribute Summary collapse
- #flag ⇒ Boolean
- #id ⇒ Symbol, :unicode_spoofing
-
#signals ⇒ Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}?
Per-signal flag toggles.
- #threshold ⇒ Float?
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
951 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 951
def initialize: (
|
Instance Attribute Details
#flag ⇒ Boolean
1126 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 1126 required :flag, ModerationAPI::Internal::Type::Boolean |
#id ⇒ Symbol, :unicode_spoofing
1121 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 1121 required :id, const: :unicode_spoofing |
#signals ⇒ Hash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal}?
Per-signal flag toggles. Omitted signals are enabled. A signal set to { flag: false } is still detected and reported as a label, but does not by itself flag the policy.
1134 1135 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 1134 optional :signals, -> { ModerationAPI::Internal::Type::HashOf[ModerationAPI::ContentSubmitParams::Policy::UnicodeSpoofing::Signal] } |
#threshold ⇒ Float?
1140 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 1140 optional :threshold, Float |
Instance Method Details
#to_hash ⇒ {
958 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 958
def to_hash: -> {
|