Sha256: 70eb6647d33d7a95a4e5b92f4d54d5100faa2905a8f978b72f20d9f7654337d8

Contents?: true

Size: 440 Bytes

Versions: 9

Compression:

Stored size: 440 Bytes

Contents

module SafetyPin
  class NodeBlueprint
    attr_accessor :path, :primary_type, :properties

    def initialize(opts)
      raise NodeBlueprintError.new("No path specified") unless opts.has_key?(:path)
      @path = opts[:path]
      @primary_type = opts[:primary_type] || "nt:unstructured"
      @properties = opts[:properties] || {}
    end

    def node_blueprint?
      true
    end
  end

  class NodeBlueprintError < Exception; end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
safety-pin-0.1.5 lib/safety_pin/node_blueprint.rb
safety-pin-0.1.4 lib/safety_pin/node_blueprint.rb
safety-pin-0.1.3 lib/safety_pin/node_blueprint.rb
safety-pin-0.1.2 lib/safety_pin/node_blueprint.rb
safety-pin-0.1.1 lib/safety_pin/node_blueprint.rb
safety-pin-0.1.0 lib/safety_pin/node_blueprint.rb
safety-pin-0.0.9 lib/safety_pin/node_blueprint.rb
safety_pin-0.0.8 lib/safety_pin/node_blueprint.rb
safety_pin-0.0.7 lib/safety_pin/node_blueprint.rb