class InitialAvatar::Configuration
Constants
- OPTIONS
Attributes
colors[RW]
font_family[RW]
font_weight[RW]
seed[RW]
size[RW]
text_color[RW]
Public Class Methods
new()
click to toggle source
# File lib/initial_avatar/configuration.rb, line 12 def initialize @colors = %w[ #1abc9c #16a085 #f1c40f #f39c12 #2ecc71 #27ae60 #e67e22 #d35400 #3498db #2980b9 #e74c3c #c0392b #9b59b6 #8e44ad #bdc3c7 #34495e #2c3e50 #95a5a6 #7f8c8d #ec87bf #d870ad #f69785 #9ba37e #b49255 #b49255 #a94136 ] @text_color = '#ffffff' @size = 100 @font_weight = 400 @font_family = 'HelveticaNeue-Light,Helvetica Neue Light,Helvetica Neue,Helvetica, Arial,Lucida Grande, sans-serif' @seed = 0 end
Public Instance Methods
default_options()
click to toggle source
# File lib/initial_avatar/configuration.rb, line 25 def default_options OPTIONS.map { |key| [key, public_send(key)] }.to_h end