Sha256: 740931f7cc721fe36afdf1f74d596920e476df3936c59678f26db1486ada41ae
Contents?: true
Size: 434 Bytes
Versions: 25
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true module Katalyst module Navigation # Data class for representing menu structure. class Node include ActiveModel::Model include ActiveModel::Attributes attribute :id, :integer attribute :index, :integer attribute :depth, :integer, default: 0 attr_accessor :item def as_json attributes.slice("id", "depth").as_json end end end end
Version data entries
25 entries across 25 versions & 1 rubygems