Class: Kitchen::Directions::BakeIndex::V1::Term
- Defined in:
- lib/kitchen/directions/bake_index/v1.rb
Instance Attribute Summary collapse
-
#group_by ⇒ Object
readonly
Returns the value of attribute group_by.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#italicized ⇒ Object
readonly
Returns the value of attribute italicized.
-
#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:, id:, group_by:, page_title:, italicized:) ⇒ Term
constructor
A new instance of Term.
Constructor Details
#initialize(text:, id:, group_by:, page_title:, italicized:) ⇒ Term
Returns a new instance of Term.
16 17 18 19 20 21 22 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 16 def initialize(text:, id:, group_by:, page_title:, italicized:) @text = text.strip @id = id @group_by = group_by @page_title = page_title @italicized = italicized end |
Instance Attribute Details
#group_by ⇒ Object (readonly)
Returns the value of attribute group_by.
12 13 14 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 12 def group_by @group_by end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 11 def id @id end |
#italicized ⇒ Object (readonly)
Returns the value of attribute italicized.
14 15 16 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 14 def italicized @italicized end |
#page_title ⇒ Object (readonly)
Returns the value of attribute page_title.
13 14 15 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 13 def page_title @page_title end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
10 11 12 |
# File 'lib/kitchen/directions/bake_index/v1.rb', line 10 def text @text end |