Class: ContextDev::Models::PageErrorCount

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/page_error_count.rb,
sig/context_dev/models/page_error_count.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(code:, count:) ⇒ PageErrorCount

Page failures sharing one error code.

Parameters:

  • code (String)

    Error code for these failures.

  • count (Integer)

    Pages that failed with this code.

  • code: (String)
  • count: (Integer)


# File 'lib/context_dev/models/page_error_count.rb', line 18

Instance Attribute Details

#codeString

Error code for these failures.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/context_dev/models/page_error_count.rb', line 10

required :code, String

#countInteger

Pages that failed with this code.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


16
# File 'lib/context_dev/models/page_error_count.rb', line 16

required :count, Integer

Instance Method Details

#to_hash{ code: String, count: Integer }

Returns:

  • ({ code: String, count: Integer })


12
# File 'sig/context_dev/models/page_error_count.rbs', line 12

def to_hash: -> { code: String, count: Integer }