Class: Jekyll::Imgproxy::Tag::ImgproxyConfig
- Inherits:
-
Object
- Object
- Jekyll::Imgproxy::Tag::ImgproxyConfig
- Defined in:
- lib/jekyll/imgproxy/tag/imgproxy_config.rb
Instance Attribute Summary collapse
-
#aws_bucket ⇒ Object
readonly
Returns the value of attribute aws_bucket.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#salt ⇒ Object
readonly
Returns the value of attribute salt.
Instance Method Summary collapse
-
#initialize ⇒ ImgproxyConfig
constructor
A new instance of ImgproxyConfig.
Constructor Details
#initialize ⇒ ImgproxyConfig
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_bucket ⇒ Object (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_url ⇒ Object (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 |
#key ⇒ Object (readonly)
Returns the value of attribute key.
7 8 9 |
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7 def key @key end |
#salt ⇒ Object (readonly)
Returns the value of attribute salt.
7 8 9 |
# File 'lib/jekyll/imgproxy/tag/imgproxy_config.rb', line 7 def salt @salt end |