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
- #fill_color ⇒ Object
- #fill_color=(v) ⇒ Object
- #weight ⇒ Object
- #weight=(v) ⇒ Object
Instance Method Details
#annotate_position ⇒ Object
35 36 37 |
# File 'lib/letter_avatar/configuration.rb', line 35 def annotate_position @annotate_position ||= '-0+5' end |
#annotate_position=(v) ⇒ Object
39 40 41 |
# File 'lib/letter_avatar/configuration.rb', line 39 def annotate_position=(v) @annotate_position = v end |
#cache_base_path ⇒ Object
3 4 5 |
# File 'lib/letter_avatar/configuration.rb', line 3 def cache_base_path @cache_base_path end |
#cache_base_path=(v) ⇒ Object
7 8 9 |
# File 'lib/letter_avatar/configuration.rb', line 7 def cache_base_path=(v) @cache_base_path = v end |
#colors_palette ⇒ Object
19 20 21 |
# File 'lib/letter_avatar/configuration.rb', line 19 def colors_palette @colors_palette ||= :google end |
#colors_palette=(v) ⇒ Object
23 24 25 |
# File 'lib/letter_avatar/configuration.rb', line 23 def colors_palette=(v) @colors_palette = v if v.in?(Colors::PALETTES) end |
#fill_color ⇒ Object
11 12 13 |
# File 'lib/letter_avatar/configuration.rb', line 11 def fill_color @fill_color || Avatar::FILL_COLOR end |
#fill_color=(v) ⇒ Object
15 16 17 |
# File 'lib/letter_avatar/configuration.rb', line 15 def fill_color=(v) @fill_color = v end |
#weight ⇒ Object
27 28 29 |
# File 'lib/letter_avatar/configuration.rb', line 27 def weight @weight ||= 300 end |
#weight=(v) ⇒ Object
31 32 33 |
# File 'lib/letter_avatar/configuration.rb', line 31 def weight=(v) @weight = v end |