class Frosting::PresentedCollection

Public Class Methods

new(collection, options) click to toggle source
Calls superclass method
# File lib/frosting/repository.rb, line 36
def initialize(collection, options)
  @options = options
  super(collection)
end

Public Instance Methods

+(other) click to toggle source
# File lib/frosting/repository.rb, line 41
def +(other)
  to_a + other.to_a
end

Private Instance Methods

presented_collection() click to toggle source
# File lib/frosting/repository.rb, line 47
def presented_collection
  __getobj__.map do |resource|
    Repository.present(resource, @options)
  end
end