Class: NFAgent::Info
Instance Attribute Summary collapse
-
#last_proxy_connection ⇒ Object
Returns the value of attribute last_proxy_connection.
Instance Method Summary collapse
Instance Attribute Details
#last_proxy_connection ⇒ Object
Returns the value of attribute last_proxy_connection.
3 4 5 |
# File 'lib/nfagent/info.rb', line 3 def last_proxy_connection @last_proxy_connection end |
Instance Method Details
#host_string ⇒ Object
13 14 15 |
# File 'lib/nfagent/info.rb', line 13 def host_string RBConfig::CONFIG['host'] end |
#hostname ⇒ Object
5 6 7 |
# File 'lib/nfagent/info.rb', line 5 def hostname Socket.gethostname end |
#to_hash ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/nfagent/info.rb', line 17 def to_hash { :hostname => hostname, :version => version, :host_string => host_string, :last_proxy_connection => last_proxy_connection } end |