require 'money_s3/parsers/base_parser' require 'money_s3/parsers/vazba_type' module MoneyS3 module Parsers class SeznamVazeb include BaseParser def vazba submodel_at(VazbaType, 'Vazba') end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:vazba] = vazba.to_h if has? 'Vazba' hash end end end end