Class: MiniPaperclip::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/mini_paperclip/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#filesystem_pathObject

Returns the value of attribute filesystem_path

Returns:

  • (Object)

    the current value of filesystem_path



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def filesystem_path
  @filesystem_path
end

#hash_dataObject

Returns the value of attribute hash_data

Returns:

  • (Object)

    the current value of hash_data



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def hash_data
  @hash_data
end

#hash_secretObject

Returns the value of attribute hash_secret

Returns:

  • (Object)

    the current value of hash_secret



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def hash_secret
  @hash_secret
end

#interpolatesObject

Returns the value of attribute interpolates

Returns:

  • (Object)

    the current value of interpolates



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def interpolates
  @interpolates
end

#keep_old_filesObject

Returns the value of attribute keep_old_files

Returns:

  • (Object)

    the current value of keep_old_files



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def keep_old_files
  @keep_old_files
end

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def logger
  @logger
end

#read_timeoutObject

Returns the value of attribute read_timeout

Returns:

  • (Object)

    the current value of read_timeout



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def read_timeout
  @read_timeout
end

#s3_aclObject

Returns the value of attribute s3_acl

Returns:

  • (Object)

    the current value of s3_acl



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def s3_acl
  @s3_acl
end

#s3_bucket_nameObject

Returns the value of attribute s3_bucket_name

Returns:

  • (Object)

    the current value of s3_bucket_name



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def s3_bucket_name
  @s3_bucket_name
end

#s3_cache_controlObject

Returns the value of attribute s3_cache_control

Returns:

  • (Object)

    the current value of s3_cache_control



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def s3_cache_control
  @s3_cache_control
end

#s3_host_aliasObject

Returns the value of attribute s3_host_alias

Returns:

  • (Object)

    the current value of s3_host_alias



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def s3_host_alias
  @s3_host_alias
end

#storageObject

Returns the value of attribute storage

Returns:

  • (Object)

    the current value of storage



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def storage
  @storage
end

#stylesObject

Returns the value of attribute styles

Returns:

  • (Object)

    the current value of styles



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def styles
  @styles
end

#url_hostObject

Returns the value of attribute url_host

Returns:

  • (Object)

    the current value of url_host



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def url_host
  @url_host
end

#url_missing_pathObject

Returns the value of attribute url_missing_path

Returns:

  • (Object)

    the current value of url_missing_path



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def url_missing_path
  @url_missing_path
end

#url_pathObject

Returns the value of attribute url_path

Returns:

  • (Object)

    the current value of url_path



4
5
6
# File 'lib/mini_paperclip/config.rb', line 4

def url_path
  @url_path
end

#url_schemeObject

Returns the value of attribute url_scheme

Returns:

  • (Object)

    the current value of 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