Class: Watchr::Smell
- Inherits:
-
Object
- Object
- Watchr::Smell
- Defined in:
- lib/watchr/smell.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#details ⇒ Object
Returns the value of attribute details.
-
#locations ⇒ Object
readonly
Returns the value of attribute locations.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #add_location(location) ⇒ Object
-
#initialize(type, context, description) ⇒ Smell
constructor
A new instance of Smell.
Constructor Details
#initialize(type, context, description) ⇒ Smell
Returns a new instance of Smell.
6 7 8 9 10 11 |
# File 'lib/watchr/smell.rb', line 6 def initialize(type, context, description) @type = type @context = context @description = description @locations = [] end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/watchr/smell.rb', line 3 def context @context end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3 4 5 |
# File 'lib/watchr/smell.rb', line 3 def description @description end |
#details ⇒ Object
Returns the value of attribute details.
4 5 6 |
# File 'lib/watchr/smell.rb', line 4 def details @details end |
#locations ⇒ Object (readonly)
Returns the value of attribute locations.
3 4 5 |
# File 'lib/watchr/smell.rb', line 3 def locations @locations end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/watchr/smell.rb', line 3 def type @type end |
Instance Method Details
#add_location(location) ⇒ Object
13 14 15 |
# File 'lib/watchr/smell.rb', line 13 def add_location(location) @locations << location end |