Class: Peddler::APIs::ProductPricing20220501::ErrorList

Inherits:
Array
  • Object
show all
Defined in:
lib/peddler/apis/product_pricing_2022_05_01/error_list.rb,
sig/peddler/apis/product_pricing_2022_05_01.rbs

Overview

A list of error responses that are returned when a request is unsuccessful.

Class Method Summary collapse

Class Method Details

.parse(array) ⇒ ErrorList

Parameters:

  • (Array[untyped])

Returns:



11
12
13
# File 'lib/peddler/apis/product_pricing_2022_05_01/error_list.rb', line 11

def parse(array)
  new(array.map { |item| Error.parse(item) })
end