Class: Hosts

Inherits:
Object
  • Object
show all
Defined in:
lib/noah/hosts.rb

Class Method Summary (collapse)

Class Method Details

+ (Array) all(options = {})

Array of Host objects

Parameters:

  • (Hash) optional

    filters for results

Returns:

  • (Array)

    Array of Host objects



80
81
82
# File 'lib/noah/hosts.rb', line 80

def self.all(options = {})
  options.empty? ? Host.all.sort : Host.find(options).sort
end