require 'money_s3/parsers/base_parser' module MoneyS3 module Parsers class Cinnost include BaseParser def zkrat at 'Zkrat' end def nazev at 'Nazev' end def pozn at 'Pozn' end def to_h hash = WithAttributes.new({}) hash.attributes = attributes hash[:zkrat] = zkrat if has? 'Zkrat' hash[:nazev] = nazev if has? 'Nazev' hash[:pozn] = pozn if has? 'Pozn' hash end end end end