Sha256: d93bc2e7caedc14b820bc84fe935b93406abf69c97b643092194b765e9f753ac

Contents?: true

Size: 405 Bytes

Versions: 9

Compression:

Stored size: 405 Bytes

Contents

class Ey::Core::Client::Servers < Ey::Core::Collection

  model Ey::Core::Client::Server

  self.model_root         = "server"
  self.model_request      = :get_server
  self.collection_root    = "servers"
  self.collection_request = :get_servers

  def discover(options={})
    self.connection.requests.new(self.connection.discover_server(Cistern::Hash.stringify_keys(options)).body["request"])
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/collections/servers.rb
ey-core-3.6.4 lib/ey-core/collections/servers.rb
ey-core-3.6.3 lib/ey-core/collections/servers.rb
ey-core-3.6.1 lib/ey-core/collections/servers.rb
groove-ey-core-3.6.3 lib/ey-core/collections/servers.rb
groove-ey-core-3.6.2 lib/ey-core/collections/servers.rb
groove-ey-core-3.6.1 lib/ey-core/collections/servers.rb
ey-core-3.5.0 lib/ey-core/collections/servers.rb
ey-core-3.4.4 lib/ey-core/collections/servers.rb