class Feedlr::Collection

When the response is of Array type,

it creates an array of Feedlr::Base or plain types elements

Public Class Methods

new(data) click to toggle source

Initializer @param [Array] data @return [Feedlr::Collection]

Calls superclass method
# File lib/feedlr/collection.rb, line 8
def initialize(data)
  super([])
  data.each do |e|
    self.<<(e.is_a?(Hash) ? Feedlr::Base.new(e) : e)
  end
end