Sha256: b4714777e40fa49832c7526dfd4a96d2827cd35da030996b9641750dcfd21267
Contents?: true
Size: 1.86 KB
Versions: 7
Compression:
Stored size: 1.86 KB
Contents
module MoneyS3 module Parsers class ObdobiDPH2 include ParserCore::BaseParser def datum_od at 'DatumOd' end def datum_od_attributes attributes_at 'DatumOd' end def poh_d_1 at 'PohD_1' end def poh_d_1_attributes attributes_at 'PohD_1' end def poh_d_2 at 'PohD_2' end def poh_d_2_attributes attributes_at 'PohD_2' end def poh_d_3 at 'PohD_3' end def poh_d_3_attributes attributes_at 'PohD_3' end def poh_d_4 at 'PohD_4' end def poh_d_4_attributes attributes_at 'PohD_4' end def poh_d_5 at 'PohD_5' end def poh_d_5_attributes attributes_at 'PohD_5' end def poh_d_6 at 'PohD_6' end def poh_d_6_attributes attributes_at 'PohD_6' end def to_h hash = {} hash[:attributes] = attributes hash[:datum_od] = datum_od if has? 'DatumOd' hash[:datum_od_attributes] = datum_od_attributes if has? 'DatumOd' hash[:poh_d_1] = poh_d_1 if has? 'PohD_1' hash[:poh_d_1_attributes] = poh_d_1_attributes if has? 'PohD_1' hash[:poh_d_2] = poh_d_2 if has? 'PohD_2' hash[:poh_d_2_attributes] = poh_d_2_attributes if has? 'PohD_2' hash[:poh_d_3] = poh_d_3 if has? 'PohD_3' hash[:poh_d_3_attributes] = poh_d_3_attributes if has? 'PohD_3' hash[:poh_d_4] = poh_d_4 if has? 'PohD_4' hash[:poh_d_4_attributes] = poh_d_4_attributes if has? 'PohD_4' hash[:poh_d_5] = poh_d_5 if has? 'PohD_5' hash[:poh_d_5_attributes] = poh_d_5_attributes if has? 'PohD_5' hash[:poh_d_6] = poh_d_6 if has? 'PohD_6' hash[:poh_d_6_attributes] = poh_d_6_attributes if has? 'PohD_6' hash end end end end
Version data entries
7 entries across 7 versions & 1 rubygems