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

Inherits:
Base
  • Object
show all
Defined in:
lib/engineyard-serverside/callbacks/collection/service_hooks/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


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

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

#matching(callback) ⇒ Object


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

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