Class: Pwnix::Api::Client::System

Inherits:
Object
  • Object
show all
Includes:
HTTParty, HTTPartyTime
Defined in:
lib/pwnix-api-client/system.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HTTPartyTime

#clear_errors, #errors, #has_errors?, included, #last_error, #safe_api_call

Constructor Details

#initializeSystem

Returns a new instance of System.



19
20
21
22
23
24
25
26
27
# File 'lib/pwnix-api-client/system.rb', line 19

def initialize
  @hardware = Hardware.new
  @logs = Logs.new
  @network = Network.new
  @os = Os.new
  @sms = Sms.new
  @ssh = Ssh.new
  @utility = Utility.new
end

Instance Attribute Details

#hardwareObject

Returns the value of attribute hardware.



16
17
18
# File 'lib/pwnix-api-client/system.rb', line 16

def hardware
  @hardware
end

#logsObject

Returns the value of attribute logs.



16
17
18
# File 'lib/pwnix-api-client/system.rb', line 16

def logs
  @logs
end

#networkObject

Returns the value of attribute network.



16
17
18
# File 'lib/pwnix-api-client/system.rb', line 16

def network
  @network
end

#osObject

Returns the value of attribute os.



17
18
19
# File 'lib/pwnix-api-client/system.rb', line 17

def os
  @os
end

#smsObject

Returns the value of attribute sms.



17
18
19
# File 'lib/pwnix-api-client/system.rb', line 17

def sms
  @sms
end

#sshObject

Returns the value of attribute ssh.



17
18
19
# File 'lib/pwnix-api-client/system.rb', line 17

def ssh
  @ssh
end

#utilityObject

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

#statusObject



29
30
31
# File 'lib/pwnix-api-client/system.rb', line 29

def status
  safe_api_call("/system/status")
end