Class: ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/moderation_api/models/content_submit_params.rb,
sig/moderation_api/models/content_submit_params.rbs

Defined Under Namespace

Classes: Entity

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

#initializeObject



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

def initialize: (

Instance Attribute Details

#entitiesHash{Symbol=>ModerationAPI::Models::ContentSubmitParams::Policy::URLMasking::Entity}

Parameters:

  • value (::Hash[Symbol, ModerationAPI::ContentSubmitParams::Policy::URLMasking::Entity])

Returns:



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

required :entities,
-> { ModerationAPI::Internal::Type::HashOf[ModerationAPI::ContentSubmitParams::Policy::URLMasking::Entity] }

#idSymbol, :url

Parameters:

  • value (:url)

Returns:

  • (Symbol, :url)


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

required :id, const: :url

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {