Class: Fiona7::AttributeReaders::BinaryAsLinklist
- Inherits:
-
AttributeReader
- Object
- AttributeReader
- Fiona7::AttributeReaders::BinaryAsLinklist
- Defined in:
- lib/fiona7/attribute_readers/binary_as_linklist.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 |
# File 'lib/fiona7/attribute_readers/binary_as_linklist.rb', line 7 def call if !Fiona7.mode == :legacy || !self.obj.binary? deserialize_binary(self.obj.attr_values[self.attr_name].try(:first)) else {id: Fiona7::BlobIdGenerator.new(self.obj.id, self.obj.last_changed).call} end end |