Class: EY::Serverside::Callbacks::Collection::Combined

Inherits:
Base
  • Object
show all
Defined in:
lib/engineyard-serverside/callbacks/collection/combined.rb

Instance Method Summary collapse

Methods inherited from Base

#distribute, #empty?, #execute, #initialize, load

Constructor Details

This class inherits a constructor from EY::Serverside::Callbacks::Collection::Base

Instance Method Details

#allObject



11
12
13
14
15
# File 'lib/engineyard-serverside/callbacks/collection/combined.rb', line 11

def all
  collections.
    map {|collection| collection.all}.
    flatten
end

#matching(callback) ⇒ Object



17
18
19
20
21
# File 'lib/engineyard-serverside/callbacks/collection/combined.rb', line 17

def matching(callback)
  collections.
    map {|collection| collection.matching(callback)}.
    flatten
end