Class: AvatarGenerator::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/avatar_generator/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
# File 'lib/avatar_generator/configuration.rb', line 10

def initialize
  @size = 250
  @background = "#FFFFFF"
  @storage_path = "public/avatars"
  @public_path = "/avatars"
end

Instance Attribute Details

#backgroundObject

Returns the value of attribute background.



5
6
7
# File 'lib/avatar_generator/configuration.rb', line 5

def background
  @background
end

#public_pathObject

Returns the value of attribute public_path.



5
6
7
# File 'lib/avatar_generator/configuration.rb', line 5

def public_path
  @public_path
end

#sizeObject

Returns the value of attribute size.



5
6
7
# File 'lib/avatar_generator/configuration.rb', line 5

def size
  @size
end

#storage_pathObject

Returns the value of attribute storage_path.



5
6
7
# File 'lib/avatar_generator/configuration.rb', line 5

def storage_path
  @storage_path
end