Class: ContextDev::Models::MonitorUpdateResponse::Baseline::MonitorsPageBaseline

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/context_dev/models/monitor_update_response.rb,
sig/context_dev/models/monitor_update_response.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

#initializeMonitorsPageBaseline

Returns a new instance of MonitorsPageBaseline.

Parameters:

  • captured_at: (Time)
  • text: (String)


352
# File 'sig/context_dev/models/monitor_update_response.rbs', line 352

def initialize: (captured_at: Time, text: String) -> void

Instance Attribute Details

#captured_atTime

When this baseline was last captured or replaced.

Parameters:

  • value (Time)

Returns:

  • (Time)


472
# File 'lib/context_dev/models/monitor_update_response.rb', line 472

required :captured_at, Time

#textString

The page's visible text as last observed.

Parameters:

  • value (String)

Returns:

  • (String)


478
# File 'lib/context_dev/models/monitor_update_response.rb', line 478

required :text, String

Instance Method Details

#to_hash{ captured_at: Time, text: String }

Returns:

  • ({ captured_at: Time, text: String })


354
# File 'sig/context_dev/models/monitor_update_response.rbs', line 354

def to_hash: -> { captured_at: Time, text: String }