Class: Zizq::Resources::ErrorPage

Inherits:
Page show all
Defined in:
lib/zizq/resources/error_page.rb

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

Methods inherited from Resource

#initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Zizq::Resources::Resource

Instance Method Details

#itemsObject 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