Class: Nis::Unit::Status
- Inherits:
-
Object
- Object
- Nis::Unit::Status
- Defined in:
- lib/nis/unit/status.rb
Instance Attribute Summary collapse
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(value) ⇒ Status
constructor
A new instance of Status.
- #to_s ⇒ String
Constructor Details
#initialize(value) ⇒ Status
Returns a new instance of Status.
6 7 8 |
# File 'lib/nis/unit/status.rb', line 6 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ String
Returns the current value of value.
3 4 5 |
# File 'lib/nis/unit/status.rb', line 3 def value @value end |
Instance Method Details
#==(other) ⇒ Boolean
31 32 33 |
# File 'lib/nis/unit/status.rb', line 31 def ==(other) @value == other.value end |
#to_s ⇒ String
26 27 28 |
# File 'lib/nis/unit/status.rb', line 26 def to_s @value end |