Class: Dms::LocalTime
- Inherits:
-
Object
- Object
- Dms::LocalTime
- Defined in:
- lib/dms/types.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(o) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(value) ⇒ LocalTime
constructor
A new instance of LocalTime.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ LocalTime
Returns a new instance of LocalTime.
51 |
# File 'lib/dms/types.rb', line 51 def initialize(value); @value = value; end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
50 51 52 |
# File 'lib/dms/types.rb', line 50 def value @value end |
Instance Method Details
#==(o) ⇒ Object Also known as: eql?
52 |
# File 'lib/dms/types.rb', line 52 def ==(o); o.is_a?(LocalTime) && @value == o.value; end |
#hash ⇒ Object
54 |
# File 'lib/dms/types.rb', line 54 def hash; [LocalTime, @value].hash; end |
#to_s ⇒ Object
55 |
# File 'lib/dms/types.rb', line 55 def to_s; @value; end |