Class: Peddler::APIs::AplusContent20201101::DecoratorSet

Inherits:
Array
  • Object
show all
Defined in:
lib/peddler/apis/aplus_content_2020_11_01/decorator_set.rb

Overview

A set of content decorators.

Class Method Summary collapse

Class Method Details

.parse(array) ⇒ Object



11
12
13
# File 'lib/peddler/apis/aplus_content_2020_11_01/decorator_set.rb', line 11

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