Class: BreadcrumbsOnRailsMicrodataBuilder::Breadcrumbs::Element
- Inherits:
-
Object
- Object
- BreadcrumbsOnRailsMicrodataBuilder::Breadcrumbs::Element
- Defined in:
- lib/breadcrumbs_on_rails_microdata_builder/breadcrumbs.rb
Overview
Represents a navigation element in the breadcrumb collection.
Instance Attribute Summary collapse
-
#name ⇒ String
The element/link name.
-
#options ⇒ Hash
The element/link URL.
-
#path ⇒ String
The element/link URL.
Instance Method Summary collapse
-
#initialize(name, path, options = {}) ⇒ Element
constructor
Initializes the Element with given parameters.
Constructor Details
#initialize(name, path, options = {}) ⇒ Element
Initializes the Element with given parameters.
91 92 93 94 95 |
# File 'lib/breadcrumbs_on_rails_microdata_builder/breadcrumbs.rb', line 91 def initialize(name, path, = {}) self.name = name self.path = path self. = end |
Instance Attribute Details
#name ⇒ String
Returns The element/link name.
78 79 80 |
# File 'lib/breadcrumbs_on_rails_microdata_builder/breadcrumbs.rb', line 78 def name @name end |
#options ⇒ Hash
Returns The element/link URL.
82 83 84 |
# File 'lib/breadcrumbs_on_rails_microdata_builder/breadcrumbs.rb', line 82 def @options end |
#path ⇒ String
Returns The element/link URL.
80 81 82 |
# File 'lib/breadcrumbs_on_rails_microdata_builder/breadcrumbs.rb', line 80 def path @path end |