Class: Jekyll::Imgproxy::Tag::ImgproxyConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/imgproxy/tag/imgproxy_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeImgproxyConfig

Returns a new instance of ImgproxyConfig.



13
14
15
16
17
18
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 13

def initialize
  @base_url   = fetch_config(:base_url)
  @key        = fetch_config(:key)
  @salt       = fetch_config(:salt)
  @aws_bucket = fetch_config(:aws_bucket)
end

Instance Attribute Details

#aws_bucketObject (readonly)

Returns the value of attribute aws_bucket.



7
8
9
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7

def aws_bucket
  @aws_bucket
end

#base_urlObject (readonly)

Returns the value of attribute base_url.



7
8
9
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7

def base_url
  @base_url
end

#keyObject (readonly)

Returns the value of attribute key.



7
8
9
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7

def key
  @key
end

#saltObject (readonly)

Returns the value of attribute salt.



7
8
9
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7

def salt
  @salt
end