Class: ServerRegistryClient::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/server-registry-client/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(server_registry_url, version_number = 1) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/server-registry-client/client.rb', line 5

def initialize(server_registry_url, version_number=1)
	use_version(server_registry_url, version_number)
end

Instance Attribute Details

#server_processorObject

Returns the value of attribute server_processor.



3
4
5
# File 'lib/server-registry-client/client.rb', line 3

def server_processor
  @server_processor
end

Instance Method Details

#add_server_to_categories(server, category_names) ⇒ Object



13
14
15
# File 'lib/server-registry-client/client.rb', line 13

def add_server_to_categories(server, category_names)
	return server_processor.add_server_to_categories(server, category_names)
end

#remove_server_from_category(server, category_name) ⇒ Object



17
18
19
# File 'lib/server-registry-client/client.rb', line 17

def remove_server_from_category(server, category_name)
	return server_processor.remove_server_from_category(server, category_name)
end

#remove_servers_like(server) ⇒ Object



21
22
23
# File 'lib/server-registry-client/client.rb', line 21

def remove_servers_like(server)
	return server_processor.remove_servers_like(server)
end

#server_registry_urlObject



25
26
27
# File 'lib/server-registry-client/client.rb', line 25

def server_registry_url
	return server_processor.server_registry_url_root
end

#servers_in_category(category) ⇒ Object



9
10
11
# File 'lib/server-registry-client/client.rb', line 9

def servers_in_category(category)
	return server_processor.servers_in_category(category)
end