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:



1155
1156
1157
1158
1159
1160
1161
1162
1163
# File 'lib/moderation_api/models/content_submit_params.rb', line 1155

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

#flagBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

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

Instance Method Details

#to_hash{ flag: bool }

Returns:

  • ({ flag: bool })


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

def to_hash: -> { flag: bool }