Sha256: 6c870ac0021d758b15df1d24408a4c9bb09f7405e3773d01256aa9889b5b35f2

Contents?: true

Size: 646 Bytes

Versions: 4

Compression:

Stored size: 646 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class PrepravceType
      include BaseParser

      def zkrat
        at 'Zkrat'
      end

      def nazev
        at 'Nazev'
      end

      def poznamka
        at 'Poznamka'
      end

      def kod_odesil
        at 'KodOdesil'
      end

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

        hash[:zkrat] = zkrat if has? 'Zkrat'
        hash[:nazev] = nazev if has? 'Nazev'
        hash[:poznamka] = poznamka if has? 'Poznamka'
        hash[:kod_odesil] = kod_odesil if has? 'KodOdesil'

        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/prepravce_type.rb
money_s3-0.9.0 lib/money_s3/parsers/prepravce_type.rb
money_s3-0.8.0 lib/money_s3/parsers/prepravce_type.rb
money_s3-0.7.0 lib/money_s3/parsers/prepravce_type.rb