Class: PandaCms::Breadcrumb
- Inherits:
-
Object
- Object
- PandaCms::Breadcrumb
- Defined in:
- app/models/panda_cms/breadcrumb.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Breadcrumb
constructor
A new instance of Breadcrumb.
Constructor Details
#initialize(name, path) ⇒ Breadcrumb
Returns a new instance of Breadcrumb.
5 6 7 8 |
# File 'app/models/panda_cms/breadcrumb.rb', line 5 def initialize(name, path) @name = name @path = path end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'app/models/panda_cms/breadcrumb.rb', line 3 def name @name end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'app/models/panda_cms/breadcrumb.rb', line 3 def path @path end |