Module: Euca::Filterable::ClassMethods

Defined in:
lib/euca/filterable.rb

Instance Method Summary collapse

Instance Method Details

#find_by(args) ⇒ Object



11
12
13
# File 'lib/euca/filterable.rb', line 11

def find_by args
  where(args).first
end

#where(args) ⇒ Object



6
7
8
9
# File 'lib/euca/filterable.rb', line 6

def where args
  args = args.map{|key,value| "--filter #{key}=#{value}" }
  describe *args
end