Class: Zizq::Resources::ErrorPage

Inherits:
Page show all
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

#client

Instance Method Summary collapse

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

#itemsObject Also known as: errors

: () -> Array

Returns:

  • (Object)


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