Sha256: 04488fdb62682e2e22d8b5594c08f123de9ef3333f2ca3df85532a263e5ac7ec

Contents?: true

Size: 432 Bytes

Versions: 19

Compression:

Stored size: 432 Bytes

Contents

module NFAgent
  class Info
    attr_accessor :last_proxy_connection

    def hostname
      Socket.gethostname
    end

    def version
      NFAgent::VERSION
    end

    def host_string
      RBConfig::CONFIG['host']
    end

    def to_hash
      {
        :hostname => hostname,
        :version => version,
        :host_string => host_string,
        :last_proxy_connection => last_proxy_connection
      }
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
nfagent-1.0.0 lib/nfagent/info.rb
nfagent-0.9.50 lib/nfagent/info.rb
nfagent-0.9.31 lib/nfagent/info.rb
nfagent-0.9.30 lib/nfagent/info.rb
nfagent-0.9.29 lib/nfagent/info.rb
nfagent-0.9.28 lib/nfagent/info.rb
nfagent-0.9.27 lib/nfagent/info.rb
nfagent-0.9.26 lib/nfagent/info.rb
nfagent-0.9.20 lib/nfagent/info.rb
nfagent-0.9.19 lib/nfagent/info.rb
nfagent-0.9.17 lib/nfagent/info.rb
nfagent-0.9.15 lib/nfagent/info.rb
nfagent-0.9.13 lib/nfagent/info.rb
nfagent-0.9.11 lib/nfagent/info.rb
nfagent-0.9.10 lib/nfagent/info.rb
nfagent-0.9.9 lib/nfagent/info.rb
nfagent-0.9.8 lib/nfagent/info.rb
nfagent-0.9.6 lib/nfagent/info.rb
nfagent-0.9.5 lib/nfagent/info.rb