Module: LetterAvatar::Configuration

Included in:
LetterAvatar
Defined in:
lib/letter_avatar/configuration.rb

Instance Method Summary collapse

Instance Method Details

#annotate_positionObject



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_pathObject



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_paletteObject



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

#weightObject



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