Module: Mastercontrol

Defined in:
lib/mastercontrol.rb,
lib/mastercontrol/server.rb,
lib/mastercontrol/version.rb,
lib/mastercontrol/accounts.rb

Defined Under Namespace

Modules: Accounts, Server

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_hashObject

Returns the value of attribute access_hash.



7
8
9
# File 'lib/mastercontrol.rb', line 7

def access_hash
  @access_hash
end

.access_hash_userObject

Returns the value of attribute access_hash_user.



7
8
9
# File 'lib/mastercontrol.rb', line 7

def access_hash_user
  @access_hash_user
end

.server_hostnameObject

Returns the value of attribute server_hostname.



7
8
9
# File 'lib/mastercontrol.rb', line 7

def server_hostname
  @server_hostname
end

Class Method Details

.auth_headerObject



14
15
16
# File 'lib/mastercontrol.rb', line 14

def self.auth_header
  "WHM #{@access_hash_user}:#{@access_hash}"
end

.base_urlObject



10
11
12
# File 'lib/mastercontrol.rb', line 10

def self.base_url
  "https://#{server_hostname}:2087/json-api"
end