Class: Fiona7::AttributeReaders::StringlistAsText
- Inherits:
-
AttributeReader
- Object
- AttributeReader
- Fiona7::AttributeReaders::StringlistAsText
- Defined in:
- lib/fiona7/attribute_readers/stringlist_as_text.rb
Instance Method Summary collapse
Methods inherited from AttributeReader
Constructor Details
This class inherits a constructor from Fiona7::AttributeReaders::AttributeReader
Instance Method Details
#call ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/fiona7/attribute_readers/stringlist_as_text.rb', line 7 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 |