lib/qrda-export/helper/date_helper.rb in cqm-parsers-0.2.2 vs lib/qrda-export/helper/date_helper.rb in cqm-parsers-0.2.3

- old
+ new

@@ -49,9 +49,13 @@ "<low #{value_or_null_flavor(self['relevantPeriod']['low'])}/>"\ "<high #{value_or_null_flavor(self['relevantPeriod']['high'])}/>"\ "</effectiveTime>" end + def relevant_period_as_value + "<effectiveTime #{value_or_null_flavor(self['relevantPeriod']['low'])}/>" + end + def insurance_provider_period start_time = self['start_time'] ? DateTime.strptime(self['start_time'].to_s, '%s').to_s : nil end_time = self['end_time'] ? DateTime.strptime(self['end_time'].to_s, '%s').to_s : nil "<effectiveTime>"\ "<low #{value_or_null_flavor(start_time)}/>"\ \ No newline at end of file