Method: OEHClient::Config::SpaceManager#get

Defined in:
lib/oehclient/config/space_manager.rb

#get(site_key) ⇒ Object

get_space returns the instance of the OEHClient::Config::Space



24
25
26
27
28
29
30
31
32
# File 'lib/oehclient/config/space_manager.rb', line 24

def get(site_key)

	# raise the OEHClient::Exception::InvalidSpaceException if the space has not been registered
	raise OEHClient::Exception::InvalidSpaceException unless (@spaces.has_key?(site_key))

	# return the space configuration instance
	@spaces[site_key]

end