lib/money_s3/parsers/konfigurace.rb in money_s3-1.0.0 vs lib/money_s3/parsers/konfigurace.rb in money_s3-2.0.0
- old
+ new
@@ -1,15 +1,165 @@
module MoneyS3
module Parsers
class Konfigurace
include ParserCore::BaseParser
- include Groups::Konfigurace
+ def druh_zas
+ at 'Druh_zas'
+ end
+
+ def druh_zas_attributes
+ attributes_at 'Druh_zas'
+ end
+
+ def cinnosti
+ at 'Cinnosti'
+ end
+
+ def cinnosti_attributes
+ attributes_at 'Cinnosti'
+ end
+
+ def zvl_rezim
+ at 'ZvlRezim'
+ end
+
+ def zvl_rezim_attributes
+ attributes_at 'ZvlRezim'
+ end
+
+ def zvl_dph
+ at 'ZvlDPH'
+ end
+
+ def zvl_dph_attributes
+ attributes_at 'ZvlDPH'
+ end
+
+ def rezim_eet
+ at 'RezimEET'
+ end
+
+ def rezim_eet_attributes
+ attributes_at 'RezimEET'
+ end
+
+ def sdph_nakup
+ at 'SDPH_Nakup'
+ end
+
+ def sdph_nakup_attributes
+ attributes_at 'SDPH_Nakup'
+ end
+
+ def sdph_prod
+ at 'SDPH_Prod'
+ end
+
+ def sdph_prod_attributes
+ attributes_at 'SDPH_Prod'
+ end
+
+ def ev_min
+ at 'Ev_Min'
+ end
+
+ def ev_min_attributes
+ attributes_at 'Ev_Min'
+ end
+
+ def ev_max
+ at 'Ev_Max'
+ end
+
+ def ev_max_attributes
+ attributes_at 'Ev_Max'
+ end
+
+ def minimum
+ at 'Minimum'
+ end
+
+ def minimum_attributes
+ attributes_at 'Minimum'
+ end
+
+ def maximum
+ at 'Maximum'
+ end
+
+ def maximum_attributes
+ attributes_at 'Maximum'
+ end
+
+ def uc_pr_j_nakup
+ at 'UcPrJNakup'
+ end
+
+ def uc_pr_j_nakup_attributes
+ attributes_at 'UcPrJNakup'
+ end
+
+ def uc_pr_j_prode
+ at 'UcPrJProde'
+ end
+
+ def uc_pr_j_prode_attributes
+ attributes_at 'UcPrJProde'
+ end
+
+ def uc_pr_p_nakup
+ at 'UcPrPNakup'
+ end
+
+ def uc_pr_p_nakup_attributes
+ attributes_at 'UcPrPNakup'
+ end
+
+ def uc_pr_p_prode
+ at 'UcPrPProde'
+ end
+
+ def uc_pr_p_prode_attributes
+ attributes_at 'UcPrPProde'
+ end
+
def to_h
hash = {}
hash[:attributes] = attributes
- mega.inject(hash) { |memo, r| memo.merge r }
+ hash[:druh_zas] = druh_zas if has? 'Druh_zas'
+ hash[:druh_zas_attributes] = druh_zas_attributes if has? 'Druh_zas'
+ hash[:cinnosti] = cinnosti if has? 'Cinnosti'
+ hash[:cinnosti_attributes] = cinnosti_attributes if has? 'Cinnosti'
+ hash[:zvl_rezim] = zvl_rezim if has? 'ZvlRezim'
+ hash[:zvl_rezim_attributes] = zvl_rezim_attributes if has? 'ZvlRezim'
+ hash[:zvl_dph] = zvl_dph if has? 'ZvlDPH'
+ hash[:zvl_dph_attributes] = zvl_dph_attributes if has? 'ZvlDPH'
+ hash[:rezim_eet] = rezim_eet if has? 'RezimEET'
+ hash[:rezim_eet_attributes] = rezim_eet_attributes if has? 'RezimEET'
+ hash[:sdph_nakup] = sdph_nakup if has? 'SDPH_Nakup'
+ hash[:sdph_nakup_attributes] = sdph_nakup_attributes if has? 'SDPH_Nakup'
+ hash[:sdph_prod] = sdph_prod if has? 'SDPH_Prod'
+ hash[:sdph_prod_attributes] = sdph_prod_attributes if has? 'SDPH_Prod'
+ hash[:ev_min] = ev_min if has? 'Ev_Min'
+ hash[:ev_min_attributes] = ev_min_attributes if has? 'Ev_Min'
+ hash[:ev_max] = ev_max if has? 'Ev_Max'
+ hash[:ev_max_attributes] = ev_max_attributes if has? 'Ev_Max'
+ hash[:minimum] = minimum if has? 'Minimum'
+ hash[:minimum_attributes] = minimum_attributes if has? 'Minimum'
+ hash[:maximum] = maximum if has? 'Maximum'
+ hash[:maximum_attributes] = maximum_attributes if has? 'Maximum'
+ hash[:uc_pr_j_nakup] = uc_pr_j_nakup if has? 'UcPrJNakup'
+ hash[:uc_pr_j_nakup_attributes] = uc_pr_j_nakup_attributes if has? 'UcPrJNakup'
+ hash[:uc_pr_j_prode] = uc_pr_j_prode if has? 'UcPrJProde'
+ hash[:uc_pr_j_prode_attributes] = uc_pr_j_prode_attributes if has? 'UcPrJProde'
+ hash[:uc_pr_p_nakup] = uc_pr_p_nakup if has? 'UcPrPNakup'
+ hash[:uc_pr_p_nakup_attributes] = uc_pr_p_nakup_attributes if has? 'UcPrPNakup'
+ hash[:uc_pr_p_prode] = uc_pr_p_prode if has? 'UcPrPProde'
+ hash[:uc_pr_p_prode_attributes] = uc_pr_p_prode_attributes if has? 'UcPrPProde'
+
+ hash
end
end
end
end
\ No newline at end of file