class NixAdm::ZFS::Object

Attributes

host[R]
name[R]

Public Class Methods

new(host, name) click to toggle source
Calls superclass method NixAdm::Status::new
# File src/lib/nixadm/zfs.rb, line 43
def initialize(host, name)
  super()

  if host.is_a?(NixAdm::ZFS::Host) == false
    raise 'host must be of class Host'
  end

  @host = host
  @name = name
end

Public Instance Methods

<(other) click to toggle source
# File src/lib/nixadm/zfs.rb, line 66
def <(other)
  @name < other.name
end
<=>(other) click to toggle source
# File src/lib/nixadm/zfs.rb, line 58
def <=>(other)
  @name <=> other.name
end
>(other) click to toggle source
# File src/lib/nixadm/zfs.rb, line 62
def >(other)
  @name > other.name
end
to_s() click to toggle source
# File src/lib/nixadm/zfs.rb, line 54
def to_s()
  return @name
end