Sha256: bc264beb743d30d39b2c623cab8c5efe1c3f4bfdc6eb65c17390e80769f49a26
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 Bytes
Contents
require 'money_s3/parsers/base_parser' require 'money_s3/parsers/sklad' module MoneyS3 module Parsers class SeznamSkladu include BaseParser def sklad array_of_at(Sklad, ['Sklad']) end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:sklad] = sklad.map(&:to_h) if has? 'Sklad' hash end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.6.0 | lib/money_s3/parsers/seznam_skladu.rb |