Class: BasePresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/base_presenter.rb

Class Method Summary collapse

Class Method Details

.as_collection(collection) ⇒ Object


2
3
4
# File 'app/presenters/base_presenter.rb', line 2

def self.as_collection(collection)
  collection.map{|object| self.new(object).as_json}
end