Sha256: c221ac0978fb41dc9935158d75c26a4f6cd09444468896bb5071f1df30237fc5

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class VyrobniCislo
      include BaseParser

      def vyrobni_cis
        at :VyrobniCis
      end

      def dat_vyr
        at :DatVyr
      end

      def car_kod
        at :CarKod
      end

      def to_h
        hash = {}

        hash[:vyrobni_cis] = vyrobni_cis if raw.key? :VyrobniCis
        hash[:dat_vyr] = dat_vyr if raw.key? :DatVyr
        hash[:car_kod] = car_kod if raw.key? :CarKod

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