Sha256: a33cebccf1a9e53fd986b99198ce16690f59d0e6400c384ec40636b595dd45e8

Contents?: true

Size: 283 Bytes

Versions: 52

Compression:

Stored size: 283 Bytes

Contents

class Ey::Core::Client::Services < Cistern::Collection

  model Ey::Core::Client::Service

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

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

Version data entries

52 entries across 52 versions & 3 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/collections/services.rb
ey-core-3.6.3 lib/ey-core/collections/services.rb
ey-core-3.6.1 lib/ey-core/collections/services.rb
groove-ey-core-3.6.3 lib/ey-core/collections/services.rb
groove-ey-core-3.6.2 lib/ey-core/collections/services.rb
groove-ey-core-3.6.1 lib/ey-core/collections/services.rb
ey-core-3.5.0 lib/ey-core/collections/services.rb
ey-core-3.4.4 lib/ey-core/collections/services.rb
ey-core-3.4.2 lib/ey-core/collections/services.rb
ey-core-3.4.1 lib/ey-core/collections/services.rb
ey-core-3.4.0 lib/ey-core/collections/services.rb
ey-core-3.3.1 lib/ey-core/collections/services.rb
ey-core-3.3.0 lib/ey-core/collections/services.rb
ey-core-3.2.6 lib/ey-core/collections/services.rb
ey-core-3.2.5 lib/ey-core/collections/services.rb
ey-core-3.2.4 lib/ey-core/collections/services.rb
ey-core-3.2.3 lib/ey-core/collections/services.rb
ey-core-3.2.2 lib/ey-core/collections/services.rb
ey-core-3.2.1 lib/ey-core/collections/services.rb
ey-core-3.2.0 lib/ey-core/collections/services.rb