Class: Dms::LocalTime

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

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

#hashObject



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

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

#to_sObject



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

def to_s; @value; end