Class: Dms::OffsetDateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/dms/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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

#hashObject



72
# File 'lib/dms/types.rb', line 72

def hash; [OffsetDateTime, @value].hash; end

#to_sObject



73
# File 'lib/dms/types.rb', line 73

def to_s; @value; end