Class: MoneyS3::Parsers::SouhrnDPHType
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::SouhrnDPHType
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/souhrn_dph_type.rb
Instance Method Summary collapse
- #dph22 ⇒ Object
- #dph22_attributes ⇒ Object
- #dph5 ⇒ Object
- #dph5_attributes ⇒ Object
- #seznam_dalsi_sazby ⇒ Object
- #to_h ⇒ Object
- #zaklad0 ⇒ Object
- #zaklad0_attributes ⇒ Object
- #zaklad22 ⇒ Object
- #zaklad22_attributes ⇒ Object
- #zaklad5 ⇒ Object
- #zaklad5_attributes ⇒ Object
Instance Method Details
#dph22 ⇒ Object
38 39 40 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 38 def dph22 at 'DPH22' end |
#dph22_attributes ⇒ Object
42 43 44 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 42 def dph22_attributes attributes_at 'DPH22' end |
#dph5 ⇒ Object
30 31 32 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 30 def dph5 at 'DPH5' end |
#dph5_attributes ⇒ Object
34 35 36 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 34 def dph5_attributes attributes_at 'DPH5' end |
#seznam_dalsi_sazby ⇒ Object
46 47 48 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 46 def seznam_dalsi_sazby array_of_at(DalsiSazba, ['SeznamDalsiSazby', 'DalsiSazba']) end |
#to_h ⇒ Object
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 50 def to_h hash = {} hash[:attributes] = attributes hash[:zaklad0] = zaklad0 if has? 'Zaklad0' hash[:zaklad0_attributes] = zaklad0_attributes if has? 'Zaklad0' hash[:zaklad5] = zaklad5 if has? 'Zaklad5' hash[:zaklad5_attributes] = zaklad5_attributes if has? 'Zaklad5' hash[:zaklad22] = zaklad22 if has? 'Zaklad22' hash[:zaklad22_attributes] = zaklad22_attributes if has? 'Zaklad22' hash[:dph5] = dph5 if has? 'DPH5' hash[:dph5_attributes] = dph5_attributes if has? 'DPH5' hash[:dph22] = dph22 if has? 'DPH22' hash[:dph22_attributes] = dph22_attributes if has? 'DPH22' hash[:seznam_dalsi_sazby] = seznam_dalsi_sazby.map(&:to_h) if has? 'SeznamDalsiSazby' hash end |
#zaklad0 ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 6 def zaklad0 at 'Zaklad0' end |
#zaklad0_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 10 def zaklad0_attributes attributes_at 'Zaklad0' end |
#zaklad22 ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 22 def zaklad22 at 'Zaklad22' end |
#zaklad22_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 26 def zaklad22_attributes attributes_at 'Zaklad22' end |
#zaklad5 ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 14 def zaklad5 at 'Zaklad5' end |
#zaklad5_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/souhrn_dph_type.rb', line 18 def zaklad5_attributes attributes_at 'Zaklad5' end |