Sha256: f90d9610a2090fac749145f689eb52bd1949ff4428df543e96987c53d3168370

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

require "letter_avatar/colors"

module LetterAvatar
  module Configuration

    def cache_base_path
      @cache_base_path
    end

    def cache_base_path=(v)
      @cache_base_path = v
    end

    def colors_palette
      @colors_palette ||= :google
    end

    def colors_palette=(v)
      @colors_palette = v if v.in?(Colors::PALETTES)
    end

    def weight
      @weight ||= 300
    end

    def weight=(v)
      @weight = v
    end

    def annotate_position
      @annotate_position ||= '-0+5'
    end

    def annotate_position=(v)
      @annotate_position = v
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
letter_avatar-0.1.11 lib/letter_avatar/configuration.rb
letter_avatar-0.1.10 lib/letter_avatar/configuration.rb
letter_avatar-0.1.9 lib/letter_avatar/configuration.rb