Class: Peddler::Notifications::DetailPageTrafficEvent::DetailPageTrafficEvents

Inherits:
Array
  • Object
show all
Defined in:
lib/peddler/notifications/detail_page_traffic_event/detail_page_traffic_events.rb

Class Method Summary collapse

Class Method Details

.parse(array) ⇒ Object



10
11
12
# File 'lib/peddler/notifications/detail_page_traffic_event/detail_page_traffic_events.rb', line 10

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