Module: LetterAvatar::Configuration
- Included in:
- LetterAvatar
- Defined in:
- lib/letter_avatar/configuration.rb
Instance Method Summary collapse
- #annotate_position ⇒ Object
- #annotate_position=(v) ⇒ Object
- #cache_base_path ⇒ Object
- #cache_base_path=(v) ⇒ Object
- #colors_palette ⇒ Object
- #colors_palette=(v) ⇒ Object
- #weight ⇒ Object
- #weight=(v) ⇒ Object
Instance Method Details
#annotate_position ⇒ Object
30 31 32 |
# File 'lib/letter_avatar/configuration.rb', line 30 def annotate_position @annotate_position ||= '-0+5' end |
#annotate_position=(v) ⇒ Object
34 35 36 |
# File 'lib/letter_avatar/configuration.rb', line 34 def annotate_position=(v) @annotate_position = v end |
#cache_base_path ⇒ Object
6 7 8 |
# File 'lib/letter_avatar/configuration.rb', line 6 def cache_base_path @cache_base_path end |
#cache_base_path=(v) ⇒ Object
10 11 12 |
# File 'lib/letter_avatar/configuration.rb', line 10 def cache_base_path=(v) @cache_base_path = v end |
#colors_palette ⇒ Object
14 15 16 |
# File 'lib/letter_avatar/configuration.rb', line 14 def colors_palette @colors_palette ||= :google end |
#colors_palette=(v) ⇒ Object
18 19 20 |
# File 'lib/letter_avatar/configuration.rb', line 18 def colors_palette=(v) @colors_palette = v if v.in?(Colors::PALETTES) end |
#weight ⇒ Object
22 23 24 |
# File 'lib/letter_avatar/configuration.rb', line 22 def weight @weight ||= 300 end |
#weight=(v) ⇒ Object
26 27 28 |
# File 'lib/letter_avatar/configuration.rb', line 26 def weight=(v) @weight = v end |