Class: MiniPaperclip::Config
- Inherits:
-
Struct
- Object
- Struct
- MiniPaperclip::Config
- Defined in:
- lib/mini_paperclip/config.rb
Instance Attribute Summary collapse
-
#filesystem_path ⇒ Object
Returns the value of attribute filesystem_path.
-
#hash_data ⇒ Object
Returns the value of attribute hash_data.
-
#hash_secret ⇒ Object
Returns the value of attribute hash_secret.
-
#interpolates ⇒ Object
Returns the value of attribute interpolates.
-
#keep_old_files ⇒ Object
Returns the value of attribute keep_old_files.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
-
#s3_acl ⇒ Object
Returns the value of attribute s3_acl.
-
#s3_bucket_name ⇒ Object
Returns the value of attribute s3_bucket_name.
-
#s3_cache_control ⇒ Object
Returns the value of attribute s3_cache_control.
-
#s3_host_alias ⇒ Object
Returns the value of attribute s3_host_alias.
-
#storage ⇒ Object
Returns the value of attribute storage.
-
#styles ⇒ Object
Returns the value of attribute styles.
-
#url_host ⇒ Object
Returns the value of attribute url_host.
-
#url_missing_path ⇒ Object
Returns the value of attribute url_missing_path.
-
#url_path ⇒ Object
Returns the value of attribute url_path.
-
#url_scheme ⇒ Object
Returns the value of attribute url_scheme.
Instance Method Summary collapse
Instance Attribute Details
#filesystem_path ⇒ Object
Returns the value of attribute filesystem_path
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def filesystem_path @filesystem_path end |
#hash_data ⇒ Object
Returns the value of attribute hash_data
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def hash_data @hash_data end |
#hash_secret ⇒ Object
Returns the value of attribute hash_secret
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def hash_secret @hash_secret end |
#interpolates ⇒ Object
Returns the value of attribute interpolates
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def interpolates @interpolates end |
#keep_old_files ⇒ Object
Returns the value of attribute keep_old_files
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def keep_old_files @keep_old_files end |
#logger ⇒ Object
Returns the value of attribute logger
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def logger @logger end |
#read_timeout ⇒ Object
Returns the value of attribute read_timeout
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def read_timeout @read_timeout end |
#s3_acl ⇒ Object
Returns the value of attribute s3_acl
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def s3_acl @s3_acl end |
#s3_bucket_name ⇒ Object
Returns the value of attribute s3_bucket_name
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def s3_bucket_name @s3_bucket_name end |
#s3_cache_control ⇒ Object
Returns the value of attribute s3_cache_control
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def s3_cache_control @s3_cache_control end |
#s3_host_alias ⇒ Object
Returns the value of attribute s3_host_alias
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def s3_host_alias @s3_host_alias end |
#storage ⇒ Object
Returns the value of attribute storage
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def storage @storage end |
#styles ⇒ Object
Returns the value of attribute styles
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def styles @styles end |
#url_host ⇒ Object
Returns the value of attribute url_host
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def url_host @url_host end |
#url_missing_path ⇒ Object
Returns the value of attribute url_missing_path
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def url_missing_path @url_missing_path end |
#url_path ⇒ Object
Returns the value of attribute url_path
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def url_path @url_path end |
#url_scheme ⇒ Object
Returns the value of attribute url_scheme
4 5 6 |
# File 'lib/mini_paperclip/config.rb', line 4 def url_scheme @url_scheme end |
Instance Method Details
#merge(hash) ⇒ Object
24 25 26 |
# File 'lib/mini_paperclip/config.rb', line 24 def merge(hash) dup.merge!(hash) end |
#merge!(hash) ⇒ Object
28 29 30 31 |
# File 'lib/mini_paperclip/config.rb', line 28 def merge!(hash) to_h.deep_merge(hash.to_h).each { |k, v| self[k] = v } self end |