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:, 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

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

#idObject (readonly)

Returns the value of attribute id.



14
15
16
# File 'lib/kitchen/directions/bake_index/v1.rb', line 14

def id
  @id
end

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

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end