Class: Nis::Unit::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/nis/unit/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Status



6
7
8
# File 'lib/nis/unit/status.rb', line 6

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueString



3
4
5
# File 'lib/nis/unit/status.rb', line 3

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
# File 'lib/nis/unit/status.rb', line 29

def ==(other)
  @value == other.value
end

#to_sObject



25
26
27
# File 'lib/nis/unit/status.rb', line 25

def to_s
  @value
end