Class: Ivapi::Client::Hosting
Instance Attribute Summary collapse
-
#hosting_id ⇒ Object
readonly
Returns the value of attribute hosting_id.
Attributes inherited from Base
Instance Method Summary collapse
- #information ⇒ Object (also: #info)
-
#initialize(client, hosting_id) ⇒ Hosting
constructor
A new instance of Hosting.
Methods inherited from Base
Constructor Details
#initialize(client, hosting_id) ⇒ Hosting
Returns a new instance of Hosting.
8 9 10 11 |
# File 'lib/ivapi/client/hosting.rb', line 8 def initialize(client, hosting_id) super(client) @hosting_id = hosting_id end |
Instance Attribute Details
#hosting_id ⇒ Object (readonly)
Returns the value of attribute hosting_id.
6 7 8 |
# File 'lib/ivapi/client/hosting.rb', line 6 def hosting_id @hosting_id end |
Instance Method Details
#information ⇒ Object Also known as: info
13 14 15 16 |
# File 'lib/ivapi/client/hosting.rb', line 13 def information params = { command: 'hosting_info', id: hosting_id } get('/json.php', params) end |