Class: MaintenanceLight

Inherits:
Object
  • Object
show all
Defined in:
app/models/maintenance_light.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message)
  @version = dependency.version
  @dependency_name = dependency.name
  @color = color
  @message = message
end

Instance Attribute Details

#colorObject (readonly)

Returns the value of attribute color.



10
11
12
# File 'app/models/maintenance_light.rb', line 10

def color
  @color
end

#dependency_nameObject (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

#messageObject (readonly)

Returns the value of attribute message.



10
11
12
# File 'app/models/maintenance_light.rb', line 10

def message
  @message
end

#versionObject (readonly)

Returns the value of attribute version.



10
11
12
# File 'app/models/maintenance_light.rb', line 10

def version
  @version
end