Sha256: 446ba9f843900874dab62ab6f8d8dcb5ccc70dfa7e033aafe1cbf676dc3ff765

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class VyrobniCisloType
      include BaseParser

      def vyrobni_cis
        at 'VyrobniCis'
      end

      def datum_vyrob
        at 'DatumVyrob'
      end

      def carovy_kod
        at 'CarovyKod'
      end

      def to_h
        hash = WithAttributes.new({})
        hash.attributes = attributes

        hash[:vyrobni_cis] = vyrobni_cis if has? 'VyrobniCis'
        hash[:datum_vyrob] = datum_vyrob if has? 'DatumVyrob'
        hash[:carovy_kod] = carovy_kod if has? 'CarovyKod'

        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/vyrobni_cislo_type.rb