Class: Zizq::Resources::ErrorPage
- Defined in:
- lib/zizq/resources/error_page.rb
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
Methods inherited from Resource
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 |