Class: Ey::Core::Client::Services

Inherits:
Cistern::Collection
  • Object
show all
Defined in:
lib/ey-core/collections/services.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/ey-core/collections/services.rb', line 5

def all(options={})
  connection..body.map { |name, attr|
    new(attr.merge("name" => name))
  }
end

#get(name) ⇒ Object



11
12
13
# File 'lib/ey-core/collections/services.rb', line 11

def get(name)
  self.all.find { |s| s.name == name }
end