Class: Chutney::Issue

Inherits:
Object
  • Object
show all
Includes:
Term::ANSIColor
Defined in:
lib/chutney/issue.rb

Overview

entity value class for issues

Direct Known Subclasses

Error, Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, references, description = nil) ⇒ Issue

Returns a new instance of Issue.



11
12
13
14
15
# File 'lib/chutney/issue.rb', line 11

def initialize(name, references, description = nil)
  @name = name
  @references = references
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



9
10
11
# File 'lib/chutney/issue.rb', line 9

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/chutney/issue.rb', line 9

def name
  @name
end

#referencesObject (readonly)

Returns the value of attribute references.



9
10
11
# File 'lib/chutney/issue.rb', line 9

def references
  @references
end