Class: OpenehrRails::Rm::DvTime
- Inherits:
-
DataValue
- Object
- ActiveRecord::Base
- DataValue
- OpenehrRails::Rm::DvTime
show all
- Defined in:
- lib/openehr_rails/rm/data_values.rb
Instance Method Summary
collapse
Methods inherited from DataValue
find_sti_class, matching, sti_class_for, sti_name
Instance Method Details
#to_canonical_hash ⇒ Object
114
115
116
|
# File 'lib/openehr_rails/rm/data_values.rb', line 114
def to_canonical_hash
{ '_type' => 'DV_TIME', 'value' => time_value.strftime('%H:%M:%S') }
end
|
#value ⇒ Object
112
|
# File 'lib/openehr_rails/rm/data_values.rb', line 112
def value = time_value
|