Class: Ey::Core::Client::Services
- Inherits:
-
Cistern::Collection
- Object
- Cistern::Collection
- Ey::Core::Client::Services
- 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(={}) 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 |