Sha256: fd61bf995e1cc0855a132aa0f95c6965ebfe1a665e1d6d94e1ac450a18e329e1
Contents?: true
Size: 452 Bytes
Versions: 33
Compression:
Stored size: 452 Bytes
Contents
# frozen_string_literal: true module Katalyst module Content # Data class for representing structural information about an item 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
33 entries across 33 versions & 1 rubygems