Sha256: 58574c519d60ce2c0b1585b57ac33e0fa237f9ae4abbcd9a3d46d6d9d0f2244b
Contents?: true
Size: 656 Bytes
Versions: 7
Compression:
Stored size: 656 Bytes
Contents
module MoneyS3 module Parsers class SlevaType include ParserCore::BaseParser def limit at 'Limit' end def limit_attributes attributes_at 'Limit' 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[: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