Sha256: e06221d04fb0d2a538a7fa94fc162ae0617353cace31623d1b56624b024c71b1
Contents?: true
Size: 871 Bytes
Versions: 7
Compression:
Stored size: 871 Bytes
Contents
module MoneyS3 module Parsers class CenaType include ParserCore::BaseParser def limit at 'Limit' end def limit_attributes attributes_at 'Limit' end def cena at 'Cena' end def cena_attributes attributes_at 'Cena' end def sleva at 'Sleva' end def sleva_attributes attributes_at 'Sleva' end def to_h hash = {} hash[:attributes] = attributes hash[:limit] = limit if has? 'Limit' hash[:limit_attributes] = limit_attributes if has? 'Limit' hash[:cena] = cena if has? 'Cena' hash[:cena_attributes] = cena_attributes if has? 'Cena' hash[:sleva] = sleva if has? 'Sleva' hash[:sleva_attributes] = sleva_attributes if has? 'Sleva' hash end end end end
Version data entries
7 entries across 7 versions & 1 rubygems