Sha256: 341b1ee3704029b22bf9e95604462b11082449a57b3a63f4526f8c3de4b724c1
Contents?: true
Size: 352 Bytes
Versions: 19
Compression:
Stored size: 352 Bytes
Contents
require 'fiona7/attribute_readers/attribute_reader' require 'fiona7/attribute_readers/helpers/json_deserializer' module Fiona7 module AttributeReaders class ReferencelistAsText < 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