Class: Hemera::Generator::ImageModel

Inherits:
Object
  • Object
show all
Defined in:
lib/hemera/source/meta/image/image_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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_darkObject (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_lightObject (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_sObject



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