Sha256: 49ddb6619b1102f57f7e22dc075fa427c71adbc4ad943f4712d66844ef30f029

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

module Runbook::Entities
  class Book < Runbook::Entity
    def initialize(title, tags: [], labels: {})
      super(title, tags: tags, labels: labels)
    end

    # Seed data for 'render' tree traversal method
    def self.initial_render_metadata
      {depth: 1, index: 0}
    end

    # Seed data for 'run' tree traversal method
    def self.initial_run_metadata
      {depth: 1, index: 0, position: ""}
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
careacademy-runbook-1.2.0 lib/runbook/entities/book.rb
runbook-1.1.0 lib/runbook/entities/book.rb
runbook-1.0.0 lib/runbook/entities/book.rb
runbook-0.16.1 lib/runbook/entities/book.rb
runbook-0.16.0 lib/runbook/entities/book.rb