Class: ActsAsHocAvatarable::Configuration
- Inherits:
-
Object
- Object
- ActsAsHocAvatarable::Configuration
- Defined in:
- lib/acts_as_hoc_avatarable/configuration.rb
Instance Attribute Summary collapse
-
#default_host ⇒ Object
Returns the value of attribute default_host.
-
#fallback_to_gravatar ⇒ Object
Returns the value of attribute fallback_to_gravatar.
-
#resize_on_create ⇒ Object
Returns the value of attribute resize_on_create.
-
#resize_size ⇒ Object
Returns the value of attribute resize_size.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/acts_as_hoc_avatarable/configuration.rb', line 7 def initialize @resize_on_create = true @resize_size = "400x400>" @fallback_to_gravatar = true @default_host = "localhost:3000" end |
Instance Attribute Details
#default_host ⇒ Object
Returns the value of attribute default_host.
6 7 8 |
# File 'lib/acts_as_hoc_avatarable/configuration.rb', line 6 def default_host @default_host end |
#fallback_to_gravatar ⇒ Object
Returns the value of attribute fallback_to_gravatar.
5 6 7 |
# File 'lib/acts_as_hoc_avatarable/configuration.rb', line 5 def fallback_to_gravatar @fallback_to_gravatar end |
#resize_on_create ⇒ Object
Returns the value of attribute resize_on_create.
3 4 5 |
# File 'lib/acts_as_hoc_avatarable/configuration.rb', line 3 def resize_on_create @resize_on_create end |
#resize_size ⇒ Object
Returns the value of attribute resize_size.
4 5 6 |
# File 'lib/acts_as_hoc_avatarable/configuration.rb', line 4 def resize_size @resize_size end |