Class: Kitchen::Directions::BakeIndex::V1::Term
- Defined in:
- lib/kitchen/directions/bake_index/v1.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#group_by ⇒ Object
readonly
Returns the value of attribute group_by.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#lang ⇒ Object
readonly
Returns the value of attribute lang.
-
#page_title ⇒ Object
readonly
Returns the value of attribute page_title.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, children:, id:, page_title:, **attributes) ⇒ Term
constructor
A new instance of Term.
Constructor Details
#initialize(text:, children:, id:, page_title:, **attributes) ⇒ Term
Returns a new instance of Term.
19 20 21 22 23 24 25 26 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 19 def initialize(text:, children:, id:, page_title:, **attributes) @text = text.strip @children = children @id = id @page_title = page_title @group_by = attributes[:group_by] @lang = attributes[:lang] end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
13 14 15 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 13 def children @children end |
#group_by ⇒ Object (readonly)
Returns the value of attribute group_by.
16 17 18 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 16 def group_by @group_by end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
14 15 16 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 14 def id @id end |
#lang ⇒ Object (readonly)
Returns the value of attribute lang.
17 18 19 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 17 def lang @lang end |
#page_title ⇒ Object (readonly)
Returns the value of attribute page_title.
15 16 17 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 15 def page_title @page_title end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
12 13 14 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 12 def text @text end |