Class: Courier::Models::AutomationRunListResponse

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

#initialize(runs:, next_cursor: nil) ⇒ Object

A page of Automation runs.

Parameters:



# File 'lib/courier/models/automation_run_list_response.rb', line 17

Instance Attribute Details

#next_cursorString?

Pass back as cursor to fetch the next page. Absent on the last page.

Parameters:

  • (String)

Returns:

  • (String, nil)


15
# File 'lib/courier/models/automation_run_list_response.rb', line 15

optional :next_cursor, String

#runsArray<Courier::Models::AutomationRunListItem>

Parameters:

Returns:



9
# File 'lib/courier/models/automation_run_list_response.rb', line 9

required :runs, -> { Courier::Internal::Type::ArrayOf[Courier::AutomationRunListItem] }

Instance Method Details

#to_hash{

Returns:

  • ({)


18
# File 'sig/courier/models/automation_run_list_response.rbs', line 18

def to_hash: -> {