require 'money_s3/parsers/base_parser' require 'money_s3/parsers/prodejka' module MoneyS3 module Parsers class SeznamProdejka include BaseParser def prodejka array_of_at(Prodejka, ['Prodejka']) end def to_h_with_attrs hash = HashWithAttributes.new({}, attributes) hash[:prodejka] = prodejka.map(&:to_h_with_attrs) if has? 'Prodejka' hash end end end end