Class: ISPManager

Inherits:
Object
  • Object
show all
Defined in:
lib/ispmanager.rb

Defined Under Namespace

Classes: Base, Domain, Request, RequireConnectionParams

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ ISPManager

Returns a new instance of ISPManager.



7
8
9
10
11
12
13
14
# File 'lib/ispmanager.rb', line 7

def initialize params
	unless params[:url] && params[:user] && params[:password]
		raise RequireConnectionParams
	end

	params[:uri] = URI params[:url]
	@params = params
end

Instance Method Details

#domainsObject



16
17
18
# File 'lib/ispmanager.rb', line 16

def domains
	@domains ||= ISPManager::Domain.new @params
end