Class: ForemanTasks::TroubleshootingHelpGenerator::Info

Inherits:
Object
  • Object
show all
Defined in:
app/services/foreman_tasks/troubleshooting_help_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeInfo

Returns a new instance of Info.



22
23
24
25
# File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 22

def initialize
  @description_lines = []
  @links = []
end

Instance Attribute Details

#description_linesObject (readonly)

Returns the value of attribute description_lines.



20
21
22
# File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 20

def description_lines
  @description_lines
end

Returns the value of attribute links.



20
21
22
# File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 20

def links
  @links
end

Instance Method Details

#add_line(line) ⇒ Object



27
28
29
# File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 27

def add_line(line)
  @description_lines << line
end


31
32
33
# File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 31

def add_link(link)
  @links << link
end