Sha256: ab1db473a3ea98fac06e31c1884ca2527908f21d53edfa954be7ec5caf8e1cbf

Contents?: true

Size: 421 Bytes

Versions: 44

Compression:

Stored size: 421 Bytes

Contents

class Eco::Data::Locations::NodePlain
  module Serial
    attr_writer :serializer

    # @return [Proc] the serializer to be used.
    def serializer
      @serializer ||= proc do |node|
        raise "Expecting NodePlain. Given: #{node.class}" unless node.is_a?(Eco::Data::Locations::NodePlain)
        keys = Eco::Data::Locations::NodePlain::ALL_ATTRS
        node.to_h(*keys)
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
eco-helpers-3.0.1 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-3.0.0 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.25 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.24 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.23 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.22 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.21 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.20 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.19 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.18 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.17 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.16 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.15 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.14 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.13 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.12 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.4 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.2 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.1 lib/eco/data/locations/node_plain/serial.rb
eco-helpers-2.7.0 lib/eco/data/locations/node_plain/serial.rb