Sha256: 02c30a3c850555c40532054bf4c76a2417657508a9274e05a88cb4f95d39e3ec

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 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
        hash = WithAttributes.new({})
        hash.attributes = 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

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.6.0 lib/money_s3/parsers/ucet.rb