Class: Nis::Unit::Type
- Inherits:
-
Object
- Object
- Nis::Unit::Type
- Defined in:
- lib/nis/unit/type.rb
Instance Attribute Summary collapse
-
#message ⇒ String
The current value of message.
-
#value ⇒ String
The current value of value.
Instance Method Summary collapse
- #==(other) ⇒ Boolean
-
#initialize(value) ⇒ Type
constructor
A new instance of Type.
- #to_s ⇒ String
Constructor Details
#initialize(value) ⇒ Type
Returns a new instance of Type.
7 8 9 |
# File 'lib/nis/unit/type.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#message ⇒ String
Returns the current value of message.
4 5 6 |
# File 'lib/nis/unit/type.rb', line 4 def @message end |
#value ⇒ String
Returns the current value of value.
4 5 6 |
# File 'lib/nis/unit/type.rb', line 4 def value @value end |
Instance Method Details
#==(other) ⇒ Boolean
17 18 19 |
# File 'lib/nis/unit/type.rb', line 17 def ==(other) @value == other.value end |
#to_s ⇒ String
12 13 14 |
# File 'lib/nis/unit/type.rb', line 12 def to_s @message end |