Class: ISPManager
- Inherits:
-
Object
- Object
- ISPManager
- Defined in:
- lib/ispmanager.rb
Defined Under Namespace
Classes: Base, Domain, Request, RequireConnectionParams
Instance Method Summary collapse
- #domains ⇒ Object
-
#initialize(params) ⇒ ISPManager
constructor
A new instance of ISPManager.
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
#domains ⇒ Object
16 17 18 |
# File 'lib/ispmanager.rb', line 16 def domains @domains ||= ISPManager::Domain.new @params end |