Class: AmazonS3IndexProxy::Proxy
- Inherits:
-
Object
- Object
- AmazonS3IndexProxy::Proxy
- Defined in:
- lib/amazon_s3_index_proxy/proxy.rb
Instance Attribute Summary collapse
-
#index_file_url ⇒ Object
readonly
Returns the value of attribute index_file_url.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(index_file_url, cache_options = {}) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(index_file_url, cache_options = {}) ⇒ Proxy
Returns a new instance of Proxy.
5 6 7 8 |
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 5 def initialize(index_file_url, ={}) @index_file_url = index_file_url @options = { expires_in: expires_in }.merge() end |
Instance Attribute Details
#index_file_url ⇒ Object (readonly)
Returns the value of attribute index_file_url.
3 4 5 |
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 3 def index_file_url @index_file_url end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 3 def @options end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 10 def call index_file end |