Class: Peddler::Types::FinancesV0::PromotionList

Inherits:
Array
  • Object
show all
Defined in:
lib/peddler/types/finances_v0/promotion_list.rb

Overview

A list of promotions.

Class Method Summary collapse

Class Method Details

.parse(array) ⇒ Object



13
14
15
# File 'lib/peddler/types/finances_v0/promotion_list.rb', line 13

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