Class: Kitchen::Directions::BakeIndex::V1::Term

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/directions/bake_index/v1.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_byObject (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

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/kitchen/directions/bake_index/v1.rb', line 11

def id
  @id
end

#italicizedObject (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_titleObject (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

#textObject (readonly)

Returns the value of attribute text.



10
11
12
# File 'lib/kitchen/directions/bake_index/v1.rb', line 10

def text
  @text
end