Class: Zizq::Resources::ErrorPage
- Defined in:
- lib/zizq/resources/error_page.rb,
sig/generated/zizq/resources/error_page.rbs
Overview
Paginated list of error records.
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#items ⇒ Object
(also: #errors)
: () -> Array.
Methods inherited from Page
#each, #has_next?, #has_prev?, #next_page, #prev_page, #to_h, #wrap_page
Methods inherited from Resource
#initialize, #inspect, #ms_to_seconds, #to_h
Constructor Details
This class inherits a constructor from Zizq::Resources::Resource
Instance Method Details
#items ⇒ Object Also known as: errors
: () -> Array
12 13 14 |
# File 'lib/zizq/resources/error_page.rb', line 12 def items #: () -> Array[ErrorRecord] @items ||= (@data["errors"] || []).map { |e| ErrorRecord.new(client, e) } end |