Sha256: a37af30a369f412fe5d923846c67868566f2b2c11b809831cc10e3d32d7f317d
Contents?: true
Size: 869 Bytes
Versions: 8
Compression:
Stored size: 869 Bytes
Contents
module Eco::Data::Locations NODE_PLAIN_ATTRS = %i[row_num id name parent_id weight archived archive_token] NodePlainStruct = Struct.new(*NODE_PLAIN_ATTRS) # Class to treat input csv in a form of a list of nodes, where parent is specified. class NodePlain < NodePlainStruct include Eco::Data::Locations::NodeBase require_relative 'node_plain/parsing' require_relative 'node_plain/serial' require_relative 'node_plain/builder' extend Eco::Data::Locations::NodePlain::Builder ALL_ATTRS = NODE_PLAIN_ATTRS ADDITIONAL_ATTRS = %i[row_num] PROP_ATTRS = ALL_ATTRS - ADDITIONAL_ATTRS def id clean_id(super) end # backwards compatibility alias_method :tag, :id def name super || self.id end def parentId self.parent_id end end end
Version data entries
8 entries across 8 versions & 1 rubygems