Class: ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing::Signal

Inherits:
Internal::Type::BaseModel show all
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

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(flag:, signals: nil, threshold: nil, id: :unicode_spoofing) ⇒ Signal

Some parameter documentations has been truncated, see ModerationAPI::Models::ContentSubmitParams::Policy::UnicodeSpoofing for more details.

Parameters:



1180
1181
1182
1183
1184
1185
1186
1187
1188
# File 'lib/moderation_api/models/content_submit_params.rb', line 1180

class Signal < ModerationAPI::Internal::Type::BaseModel
  # @!attribute flag
  #
  #   @return [Boolean, nil]
  optional :flag, ModerationAPI::Internal::Type::Boolean

  # @!method initialize(flag: nil)
  #   @param flag [Boolean]
end

Instance Attribute Details

#flag ⇒ Boolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


1184
# File 'lib/moderation_api/models/content_submit_params.rb', line 1184

optional :flag, ModerationAPI::Internal::Type::Boolean

Instance Method Details

#to_hash ⇒ { flag: bool }

Returns:

  • ({ flag: bool })


996
# File 'sig/moderation_api/models/content_submit_params.rbs', line 996

def to_hash: -> { flag: bool }