Sha256: fc981fbcca722d0824069730e773ceeb35a1ede3b3d156be1fbfe2e5e3f9eb9c

Contents?: true

Size: 567 Bytes

Versions: 8

Compression:

Stored size: 567 Bytes

Contents

require 'money_s3/base_element'
require 'money_s3/dalsi_sazba'

module MoneyS3
  class SouhrnDPHType
    include BaseElement

    def zaklad0
      at :Zaklad0
    end

    def zaklad5
      at :Zaklad5
    end

    def zaklad22
      at :Zaklad22
    end

    def dph5
      at :DPH5
    end

    def dph22
      at :DPH22
    end

    def seznam_dalsi_sazby
      elements = raw[:SeznamDalsiSazby]
      if elements.is_a? Hash
        elements = [elements]
      end

      elements.map do |raw|
        DalsiSazba.new(raw[:DalsiSazba])
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
money_s3-0.1.8 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.7 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.6 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.5 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.4 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.3 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.1 lib/money_s3/souhrn_dph_type.rb
money_s3-0.1.0 lib/money_s3/souhrn_dph_type.rb