Class: Aquanaut::AssetNode

Inherits:
PageNode show all
Defined in:
lib/aquanaut/asset_node.rb

Overview

An asset node is a node that represents a static asset. The type specifies what kind of static asset it is, for instance image or stylesheet.

Instance Attribute Summary collapse

Attributes inherited from PageNode

#uri

Attributes inherited from Node

#adjacency_list

Instance Method Summary collapse

Methods inherited from PageNode

#display

Methods inherited from Node

#add_edge

Constructor Details

#initialize(uri, type) ⇒ AssetNode

Constructor

Parameters:

  • uri (URI)

    identifying the static asset uniquely.

  • type (String)

    specifying the kind of static asset.



17
18
19
20
# File 'lib/aquanaut/asset_node.rb', line 17

def initialize(uri, type)
  @type = type
  super(uri)
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



9
10
11
# File 'lib/aquanaut/asset_node.rb', line 9

def type
  @type
end