Class: ForemanTasks::TroubleshootingHelpGenerator::Info
- Inherits:
 - 
      Object
      
        
- Object
 - ForemanTasks::TroubleshootingHelpGenerator::Info
 
 
- Defined in:
 - app/services/foreman_tasks/troubleshooting_help_generator.rb
 
Instance Attribute Summary collapse
- 
  
    
      #description_lines  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute description_lines.
 - 
  
    
      #links  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute links.
 
Instance Method Summary collapse
- #add_line(line) ⇒ Object
 - #add_link(link) ⇒ Object
 - 
  
    
      #initialize  ⇒ Info 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Info.
 
Constructor Details
#initialize ⇒ Info
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_lines ⇒ Object (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  | 
  
#links ⇒ Object (readonly)
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  | 
  
#add_link(link) ⇒ Object
      31 32 33  | 
    
      # File 'app/services/foreman_tasks/troubleshooting_help_generator.rb', line 31 def add_link(link) @links << link end  |