Sha256: 11a273a357964b5b86ed814e8d43e13d4d4c1a1f8b8912aa7f33e5779ecd2a81
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 Bytes
Contents
require 'hari/node/queries' module Hari class Node < Entity include Hari::Node::Queries property :model_id, required: true def generate_id return model_id if model_id.include?('#') self.class.to_s.underscore + "#" + model_id.to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hari-0.0.1 | lib/hari/node.rb |