Sha256: 014388276ee067482033e7028df32f8c8ca7acf6ba1b7454779b4254ccc4d113
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
class <%= class_name %> include ApacheAge::Entities::Vertex <%- attributes_list.each do |attribute| -%> attribute :<%= attribute[:name] %>, :<%= attribute[:type] %> <%- end -%> <%- attributes_list.each do |attribute| -%> validates :<%= attribute[:name] %>, presence: true <%- end -%> # unique node validator (remove any attributes that are not important to uniqueness) validates_with( ApacheAge::Validators::UniqueVertexValidator, attributes: <%= unique_attributes.inspect %> ) end
Version data entries
3 entries across 3 versions & 1 rubygems