Sha256: 0e3f09759c861a0abbdf0a1653c2b23b3a918270d63a7a15b4937d9a616e9fcb

Contents?: true

Size: 600 Bytes

Versions: 4

Compression:

Stored size: 600 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class Ucet
      include BaseParser

      def zkrat
        at 'Zkrat'
      end

      def ucet
        at 'Ucet'
      end

      def b_kod
        at 'BKod'
      end

      def b_nazev
        at 'BNazev'
      end

      def to_h_with_attrs
        hash = HashWithAttributes.new({}, attributes)

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

        hash
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
money_s3-0.10.0 lib/money_s3/parsers/ucet.rb
money_s3-0.9.0 lib/money_s3/parsers/ucet.rb
money_s3-0.8.0 lib/money_s3/parsers/ucet.rb
money_s3-0.7.0 lib/money_s3/parsers/ucet.rb