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