Class: Cadenya::Models::StringMatcherStartsWith

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

Defined Under Namespace

Modules: Type

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(starts_with:, type:, case_sensitive: nil) ⇒ Object

Parameters:



# File 'lib/cadenya/models/string_matcher_starts_with.rb', line 21

Instance Attribute Details

#case_sensitiveBoolean?

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


19
# File 'lib/cadenya/models/string_matcher_starts_with.rb', line 19

optional :case_sensitive, Cadenya::Internal::Type::Boolean, api_name: :caseSensitive

#starts_withString

Parameters:

  • value (String)

Returns:

  • (String)


9
# File 'lib/cadenya/models/string_matcher_starts_with.rb', line 9

required :starts_with, String, api_name: :startsWith

#typeSymbol, Cadenya::Models::StringMatcherStartsWith::Type

Parameters:

  • value (Cadenya::Models::StringMatcherStartsWith::type_)

Returns:



14
# File 'lib/cadenya/models/string_matcher_starts_with.rb', line 14

required :type, enum: -> { Cadenya::StringMatcherStartsWith::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


25
# File 'sig/cadenya/models/string_matcher_starts_with.rbs', line 25

def to_hash: -> {