Sha256: 9ef4e99c122fc5bc5d3d8c30eddb91ff69a5c46f95a6e48d625e08836a60165b
Contents?: true
Size: 348 Bytes
Versions: 19
Compression:
Stored size: 348 Bytes
Contents
require 'fiona7/attribute_readers/attribute_reader' require 'fiona7/attribute_readers/helpers/json_deserializer' module Fiona7 module AttributeReaders class MultienumAsText < AttributeReader def call value = self.obj[self.attr_name] Helpers::JsonDeserializer.new.call(value).presence || [] end end end end
Version data entries
19 entries across 19 versions & 1 rubygems