Class: Dms::LocalDateTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ LocalDateTime

Returns a new instance of LocalDateTime.



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

def initialize(value); @value = value; end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



59
60
61
# File 'lib/dms/types.rb', line 59

def value
  @value
end

Instance Method Details

#==(o) ⇒ Object Also known as: eql?



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

def ==(o); o.is_a?(LocalDateTime) && @value == o.value; end

#hashObject



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

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

#to_sObject



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

def to_s; @value; end