Class: Ez::Items::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/ez/items/link.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, path, options = {}) ⇒ Link

Returns a new instance of Link.



8
9
10
11
12
# File 'lib/ez/items/link.rb', line 8

def initialize(label, path, options = {})
  @label   = label
  @path    = path
  @options = options
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



6
7
8
# File 'lib/ez/items/link.rb', line 6

def label
  @label
end

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/ez/items/link.rb', line 6

def options
  @options
end

#pathObject (readonly)

Returns the value of attribute path.



6
7
8
# File 'lib/ez/items/link.rb', line 6

def path
  @path
end