Class: ModerationAPI::Models::ContentSubmitParams::Policy::Sexual
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- ModerationAPI::Models::ContentSubmitParams::Policy::Sexual
- Defined in:
- lib/moderation_api/models/content_submit_params.rb,
sig/moderation_api/models/content_submit_params.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Sexual
constructor
A new instance of Sexual.
- #to_hash ⇒ { id: :sexual, flag: bool, threshold: Float }
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 ⇒ Sexual
Returns a new instance of Sexual.
658 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 658
def initialize: (flag: bool, ?threshold: Float, ?id: :sexual) -> void
|
Instance Attribute Details
#flag ⇒ Boolean
807 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 807 required :flag, ModerationAPI::Internal::Type::Boolean |
#id ⇒ Symbol, :sexual
802 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 802 required :id, const: :sexual |
#threshold ⇒ Float?
812 |
# File 'lib/moderation_api/models/content_submit_params.rb', line 812 optional :threshold, Float |
Instance Method Details
#to_hash ⇒ { id: :sexual, flag: bool, threshold: Float }
660 |
# File 'sig/moderation_api/models/content_submit_params.rbs', line 660
def to_hash: -> { id: :sexual, flag: bool, threshold: Float }
|