Class: Lavatar::Configuration
- Inherits:
-
Object
- Object
- Lavatar::Configuration
- Defined in:
- lib/lavatar/configuration.rb
Instance Attribute Summary collapse
-
#font_color ⇒ Object
Returns the value of attribute font_color.
-
#font_size ⇒ Object
Returns the value of attribute font_size.
-
#font_weight ⇒ Object
Returns the value of attribute font_weight.
-
#lightness ⇒ Object
Returns the value of attribute lightness.
-
#saturation ⇒ Object
Returns the value of attribute saturation.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/lavatar/configuration.rb', line 9 def initialize @saturation = 0.4 @lightness = 0.5 @font_size = 48 @font_weight = 700 @font_color = "#ffffff" end |
Instance Attribute Details
#font_color ⇒ Object
Returns the value of attribute font_color.
7 8 9 |
# File 'lib/lavatar/configuration.rb', line 7 def font_color @font_color end |
#font_size ⇒ Object
Returns the value of attribute font_size.
5 6 7 |
# File 'lib/lavatar/configuration.rb', line 5 def font_size @font_size end |
#font_weight ⇒ Object
Returns the value of attribute font_weight.
6 7 8 |
# File 'lib/lavatar/configuration.rb', line 6 def font_weight @font_weight end |
#lightness ⇒ Object
Returns the value of attribute lightness.
4 5 6 |
# File 'lib/lavatar/configuration.rb', line 4 def lightness @lightness end |
#saturation ⇒ Object
Returns the value of attribute saturation.
3 4 5 |
# File 'lib/lavatar/configuration.rb', line 3 def saturation @saturation end |