Module: Mastercontrol
- Defined in:
- lib/mastercontrol.rb,
lib/mastercontrol/server.rb,
lib/mastercontrol/version.rb,
lib/mastercontrol/accounts.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.access_hash ⇒ Object
Returns the value of attribute access_hash.
-
.access_hash_user ⇒ Object
Returns the value of attribute access_hash_user.
-
.server_hostname ⇒ Object
Returns the value of attribute server_hostname.
Class Method Summary collapse
Class Attribute Details
.access_hash ⇒ Object
Returns the value of attribute access_hash.
7 8 9 |
# File 'lib/mastercontrol.rb', line 7 def access_hash @access_hash end |
.access_hash_user ⇒ Object
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_hostname ⇒ Object
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_header ⇒ Object
14 15 16 |
# File 'lib/mastercontrol.rb', line 14 def self.auth_header "WHM #{@access_hash_user}:#{@access_hash}" end |
.base_url ⇒ Object
10 11 12 |
# File 'lib/mastercontrol.rb', line 10 def self.base_url "https://#{server_hostname}:2087/json-api" end |