Sha256: 1593e6051d6ca00a8c5f3fa7bcdb61b25d94b00638add15d2b24dcb37edfdcc0

Contents?: true

Size: 682 Bytes

Versions: 1

Compression:

Stored size: 682 Bytes

Contents

require 'money_s3/parsers/base_parser'

module MoneyS3
  module Parsers
    class DalsiSazba
      include BaseParser

      def popis
        at :Popis
      end

      def hladina_dph
        at :HladinaDPH
      end

      def sazba
        at :Sazba
      end

      def zaklad
        at :Zaklad
      end

      def dph
        at :DPH
      end

      def to_h
        hash = {}

        hash[:popis] = popis if raw.key? :Popis
        hash[:hladina_dph] = hladina_dph if raw.key? :HladinaDPH
        hash[:sazba] = sazba if raw.key? :Sazba
        hash[:zaklad] = zaklad if raw.key? :Zaklad
        hash[:dph] = dph if raw.key? :DPH

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