class PayrolleeCz::TermEffectResult
Attributes
day_ord_end[R]
day_ord_from[R]
Public Class Methods
new(tag_code, concept_code, concept_item, values)
click to toggle source
Calls superclass method
PayrolleeCz::PayrollResult::new
# File lib/payrollee_cz/results/term_effect_result.rb, line 5 def initialize(tag_code, concept_code, concept_item, values) super(tag_code, concept_code, concept_item) setup_values(values) end
Public Instance Methods
export_value_result()
click to toggle source
# File lib/payrollee_cz/results/term_effect_result.rb, line 30 def export_value_result if (day_ord_from && day_ord_end) "#{day_ord_from} - #{day_ord_end}" else 'whole period' end end
export_xml_result(xml_element)
click to toggle source
# File lib/payrollee_cz/results/term_effect_result.rb, line 15 def export_xml_result(xml_element) attributes = {} attributes[:day_ord_from] = @day_ord_from attributes[:day_ord_end] = @day_ord_end xml_element.value(xml_value, attributes) end
setup_values(values)
click to toggle source
# File lib/payrollee_cz/results/term_effect_result.rb, line 10 def setup_values(values) @day_ord_from = values[:day_ord_from] @day_ord_end = values[:day_ord_end] end
xml_value()
click to toggle source
# File lib/payrollee_cz/results/term_effect_result.rb, line 22 def xml_value if (day_ord_from && day_ord_end) "#{day_ord_from} - #{day_ord_end}" else 'whole period' end end