Sha256: 35500aca623c36e9a7c137744bdc2110b0b58be47551681cf8c6cfcebd747d93

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

require 'money_s3/base_element'
require 'money_s3/faktura_type'

module MoneyS3
  class MoneyData
    include BaseElement

    def seznam_fakt_vyd
      elements = raw[:SeznamFaktVyd][:FaktVyd]
      if elements.is_a? Hash
        elements = [elements]
      end

      elements.map do |raw|
        MoneyS3::FakturaType.new(raw)
      end
    end

    def seznam_fakt_vyd_dpp
      elements = raw[:SeznamFaktVyd_DPP][:FaktVyd_DPP]
      if elements.is_a? Hash
        elements = [elements]
      end

      elements.map do |raw|
        MoneyS3::FakturaType.new(raw)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.1.6 lib/money_s3/money_data.rb