Sha256: 8ce1cf934726b9b7b35b74dd6f89cd7f3a2a13e0c6c541732d344698ce7d2158

Contents?: true

Size: 243 Bytes

Versions: 1

Compression:

Stored size: 243 Bytes

Contents

require 'rbfs/rsync'

module Rbfs
  class Host
    include Rsync

    def initialize(raw)
      @raw = raw
    end

    def ip
      @raw.split.first
    end

    def to_s
      name
    end

    def name
      @raw.split[1]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rbfs-0.0.2 lib/rbfs/host.rb