Class: AvatarGenerator::Configuration
- Inherits:
-
Object
- Object
- AvatarGenerator::Configuration
- Defined in:
- lib/avatar_generator/configuration.rb
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#public_path ⇒ Object
Returns the value of attribute public_path.
-
#size ⇒ Object
Returns the value of attribute size.
-
#storage_path ⇒ Object
Returns the value of attribute storage_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#background ⇒ Object
Returns the value of attribute background.
5 6 7 |
# File 'lib/avatar_generator/configuration.rb', line 5 def background @background end |
#public_path ⇒ Object
Returns the value of attribute public_path.
5 6 7 |
# File 'lib/avatar_generator/configuration.rb', line 5 def public_path @public_path end |
#size ⇒ Object
Returns the value of attribute size.
5 6 7 |
# File 'lib/avatar_generator/configuration.rb', line 5 def size @size end |
#storage_path ⇒ Object
Returns the value of attribute storage_path.
5 6 7 |
# File 'lib/avatar_generator/configuration.rb', line 5 def storage_path @storage_path end |