Class: MaintenanceLight
- Inherits:
-
Object
- Object
- MaintenanceLight
- Defined in:
- app/models/maintenance_light.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
readonly
Returns the value of attribute color.
-
#dependency_name ⇒ Object
readonly
Returns the value of attribute dependency_name.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(dependency, color, message) ⇒ MaintenanceLight
constructor
A new instance of MaintenanceLight.
Constructor Details
#initialize(dependency, color, message) ⇒ MaintenanceLight
Returns a new instance of MaintenanceLight.
3 4 5 6 7 8 |
# File 'app/models/maintenance_light.rb', line 3 def initialize(dependency, color, ) @version = dependency.version @dependency_name = dependency.name @color = color @message = end |
Instance Attribute Details
#color ⇒ Object (readonly)
Returns the value of attribute color.
10 11 12 |
# File 'app/models/maintenance_light.rb', line 10 def color @color end |
#dependency_name ⇒ Object (readonly)
Returns the value of attribute dependency_name.
10 11 12 |
# File 'app/models/maintenance_light.rb', line 10 def dependency_name @dependency_name end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
10 11 12 |
# File 'app/models/maintenance_light.rb', line 10 def @message end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
10 11 12 |
# File 'app/models/maintenance_light.rb', line 10 def version @version end |