Sha256: dd1d660e8628887a4a71a4d36aeb7c6d55fdc9b10c4d3aac138f8009455366d6

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

require 'money_s3/parsers/base_parser'
require 'money_s3/parsers/doklad'

module MoneyS3
  module Parsers
    class VazbaType
      include BaseParser

      def typ
        at :Typ
      end

      def pod_typ
        at :PodTyp
      end

      def doklad
        submodel_at(Doklad, :Doklad)
      end

      def to_h
        hash = {}

        hash[:typ] = typ if raw.key? :Typ
        hash[:pod_typ] = pod_typ if raw.key? :PodTyp
        hash[:doklad] = doklad.to_h if raw.key? :Doklad

        hash
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.5.0 lib/money_s3/parsers/vazba_type.rb