Class: Ey::Core::Client::Servers

Inherits:
Ey::Core::Collection show all
Defined in:
lib/ey-core/collections/servers.rb

Instance Method Summary collapse

Methods inherited from Ey::Core::Collection

#==, #all, #collection_request, #collection_root, #create!, #each_entry, #each_page, #first, #get, #get!, #last_page, #load, #model_request, #model_root, #new_page, #next_page, #one, #page_parameters, #perform_get, #previous_page

Instance Method Details

#discover(options = {}) ⇒ Object



10
11
12
# File 'lib/ey-core/collections/servers.rb', line 10

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