Class: Dms::OffsetDateTime
- Inherits:
-
Object
- Object
- Dms::OffsetDateTime
- 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) ⇒ OffsetDateTime
constructor
A new instance of OffsetDateTime.
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ OffsetDateTime
Returns a new instance of OffsetDateTime.
69 |
# File 'lib/dms/types.rb', line 69 def initialize(value); @value = value; end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
68 69 70 |
# File 'lib/dms/types.rb', line 68 def value @value end |
Instance Method Details
#==(o) ⇒ Object Also known as: eql?
70 |
# File 'lib/dms/types.rb', line 70 def ==(o); o.is_a?(OffsetDateTime) && @value == o.value; end |
#hash ⇒ Object
72 |
# File 'lib/dms/types.rb', line 72 def hash; [OffsetDateTime, @value].hash; end |
#to_s ⇒ Object
73 |
# File 'lib/dms/types.rb', line 73 def to_s; @value; end |