Class: ResourceAwareness::ResourceCollection

Inherits:
Array
  • Object
show all
Defined in:
lib/resource_awareness/resource_collection.rb

Instance Method Summary collapse

Instance Method Details

#[](identifier) ⇒ Object



4
5
6
# File 'lib/resource_awareness/resource_collection.rb', line 4

def [](identifier)
  find { |r| r.id == identifier }
end