Class: ActsAsHocAvatarable::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_hostObject

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_gravatarObject

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_createObject

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_sizeObject

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