Class: Hemera::Generator::ImageModel
- Inherits:
-
Object
- Object
- Hemera::Generator::ImageModel
- Defined in:
- lib/hemera/source/meta/image/image_generator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#name_dark ⇒ Object
readonly
Returns the value of attribute name_dark.
-
#name_light ⇒ Object
readonly
Returns the value of attribute name_light.
Instance Method Summary collapse
-
#initialize(name, name_light, name_dark) ⇒ ImageModel
constructor
A new instance of ImageModel.
- #to_s ⇒ Object
Constructor Details
#initialize(name, name_light, name_dark) ⇒ ImageModel
Returns a new instance of ImageModel.
9 10 11 12 13 |
# File 'lib/hemera/source/meta/image/image_generator.rb', line 9 def initialize(name, name_light, name_dark) @name = name @name_light = name_light @name_dark = name_dark end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/hemera/source/meta/image/image_generator.rb', line 6 def name @name end |
#name_dark ⇒ Object (readonly)
Returns the value of attribute name_dark.
8 9 10 |
# File 'lib/hemera/source/meta/image/image_generator.rb', line 8 def name_dark @name_dark end |
#name_light ⇒ Object (readonly)
Returns the value of attribute name_light.
7 8 9 |
# File 'lib/hemera/source/meta/image/image_generator.rb', line 7 def name_light @name_light end |
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/hemera/source/meta/image/image_generator.rb', line 15 def to_s @name + "\t" + @name_light + "\t" + @name_dark end |