Sha256: b4e3b83de27c11d84c1c4e759016dcabc0bfacfa2a581128fc2d5ae99fbcac29

Contents?: true

Size: 1.08 KB

Versions: 7

Compression:

Stored size: 1.08 KB

Contents

module MoneyS3
  module Parsers
    class Ucet
      include ParserCore::BaseParser

      def zkrat
        at 'Zkrat'
      end

      def zkrat_attributes
        attributes_at 'Zkrat'
      end

      def ucet
        at 'Ucet'
      end

      def ucet_attributes
        attributes_at 'Ucet'
      end

      def b_kod
        at 'BKod'
      end

      def b_kod_attributes
        attributes_at 'BKod'
      end

      def b_nazev
        at 'BNazev'
      end

      def b_nazev_attributes
        attributes_at 'BNazev'
      end

      def to_h
        hash = {}
        hash[:attributes] = attributes

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:zkrat_attributes] = zkrat_attributes if has? 'Zkrat'
        hash[:ucet] = ucet if has? 'Ucet'
        hash[:ucet_attributes] = ucet_attributes if has? 'Ucet'
        hash[:b_kod] = b_kod if has? 'BKod'
        hash[:b_kod_attributes] = b_kod_attributes if has? 'BKod'
        hash[:b_nazev] = b_nazev if has? 'BNazev'
        hash[:b_nazev_attributes] = b_nazev_attributes if has? 'BNazev'

        hash
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
money_s3-2.4.1 lib/money_s3/parsers/ucet.rb
money_s3-2.4.0 lib/money_s3/parsers/ucet.rb
money_s3-2.3.0 lib/money_s3/parsers/ucet.rb
money_s3-2.2.0 lib/money_s3/parsers/ucet.rb
money_s3-2.1.0 lib/money_s3/parsers/ucet.rb
money_s3-2.0.0 lib/money_s3/parsers/ucet.rb
money_s3-1.0.0 lib/money_s3/parsers/ucet.rb