Class: Pwnix::Api::Client::System
- Inherits:
-
Object
- Object
- Pwnix::Api::Client::System
- Includes:
- HTTParty, HTTPartyTime
- Defined in:
- lib/pwnix-api-client/system.rb
Instance Attribute Summary collapse
-
#hardware ⇒ Object
Returns the value of attribute hardware.
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#network ⇒ Object
Returns the value of attribute network.
-
#os ⇒ Object
Returns the value of attribute os.
-
#sms ⇒ Object
Returns the value of attribute sms.
-
#ssh ⇒ Object
Returns the value of attribute ssh.
-
#utility ⇒ Object
Returns the value of attribute utility.
Instance Method Summary collapse
-
#initialize ⇒ System
constructor
A new instance of System.
- #status ⇒ Object
Methods included from HTTPartyTime
#clear_errors, #errors, #has_errors?, included, #last_error, #safe_api_call
Constructor Details
Instance Attribute Details
#hardware ⇒ Object
Returns the value of attribute hardware.
16 17 18 |
# File 'lib/pwnix-api-client/system.rb', line 16 def hardware @hardware end |
#logs ⇒ Object
Returns the value of attribute logs.
16 17 18 |
# File 'lib/pwnix-api-client/system.rb', line 16 def logs @logs end |
#network ⇒ Object
Returns the value of attribute network.
16 17 18 |
# File 'lib/pwnix-api-client/system.rb', line 16 def network @network end |
#os ⇒ Object
Returns the value of attribute os.
17 18 19 |
# File 'lib/pwnix-api-client/system.rb', line 17 def os @os end |
#sms ⇒ Object
Returns the value of attribute sms.
17 18 19 |
# File 'lib/pwnix-api-client/system.rb', line 17 def sms @sms end |
#ssh ⇒ Object
Returns the value of attribute ssh.
17 18 19 |
# File 'lib/pwnix-api-client/system.rb', line 17 def ssh @ssh end |
#utility ⇒ Object
Returns the value of attribute utility.
17 18 19 |
# File 'lib/pwnix-api-client/system.rb', line 17 def utility @utility end |
Instance Method Details
#status ⇒ Object
29 30 31 |
# File 'lib/pwnix-api-client/system.rb', line 29 def status safe_api_call("/system/status") end |