Class: MoneyS3::Parsers::DalsiSazba
- Inherits:
-
Object
- Object
- MoneyS3::Parsers::DalsiSazba
- Includes:
- ParserCore::BaseParser
- Defined in:
- lib/money_s3/parsers/dalsi_sazba.rb
Instance Method Summary collapse
- #dph ⇒ Object
- #dph_attributes ⇒ Object
- #hladina_dph ⇒ Object
- #hladina_dph_attributes ⇒ Object
- #popis ⇒ Object
- #popis_attributes ⇒ Object
- #sazba ⇒ Object
- #sazba_attributes ⇒ Object
- #to_h ⇒ Object
- #zaklad ⇒ Object
- #zaklad_attributes ⇒ Object
Instance Method Details
#dph ⇒ Object
38 39 40 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 38 def dph at 'DPH' end |
#dph_attributes ⇒ Object
42 43 44 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 42 def dph_attributes attributes_at 'DPH' end |
#hladina_dph ⇒ Object
14 15 16 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 14 def hladina_dph at 'HladinaDPH' end |
#hladina_dph_attributes ⇒ Object
18 19 20 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 18 def hladina_dph_attributes attributes_at 'HladinaDPH' end |
#popis ⇒ Object
6 7 8 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 6 def popis at 'Popis' end |
#popis_attributes ⇒ Object
10 11 12 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 10 def popis_attributes attributes_at 'Popis' end |
#sazba ⇒ Object
22 23 24 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 22 def sazba at 'Sazba' end |
#sazba_attributes ⇒ Object
26 27 28 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 26 def sazba_attributes attributes_at 'Sazba' end |
#to_h ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 46 def to_h hash = {} hash[:attributes] = attributes hash[:popis] = popis if has? 'Popis' hash[:popis_attributes] = popis_attributes if has? 'Popis' hash[:hladina_dph] = hladina_dph if has? 'HladinaDPH' hash[:hladina_dph_attributes] = hladina_dph_attributes if has? 'HladinaDPH' hash[:sazba] = sazba if has? 'Sazba' hash[:sazba_attributes] = sazba_attributes if has? 'Sazba' hash[:zaklad] = zaklad if has? 'Zaklad' hash[:zaklad_attributes] = zaklad_attributes if has? 'Zaklad' hash[:dph] = dph if has? 'DPH' hash[:dph_attributes] = dph_attributes if has? 'DPH' hash end |
#zaklad ⇒ Object
30 31 32 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 30 def zaklad at 'Zaklad' end |
#zaklad_attributes ⇒ Object
34 35 36 |
# File 'lib/money_s3/parsers/dalsi_sazba.rb', line 34 def zaklad_attributes attributes_at 'Zaklad' end |