Class: WonderNavigation::Crumb

Inherits:
Object
  • Object
show all
Defined in:
lib/wonder_navigation/crumb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, label = nil) ⇒ Crumb

Returns a new instance of Crumb.



5
6
7
8
# File 'lib/wonder_navigation/crumb.rb', line 5

def initialize(id, label = nil)
  @id    = id
  @label = label
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/wonder_navigation/crumb.rb', line 3

def id
  @id
end

#labelObject

Returns the value of attribute label.



3
4
5
# File 'lib/wonder_navigation/crumb.rb', line 3

def label
  @label
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/wonder_navigation/crumb.rb', line 3

def path
  @path
end