Class: AmazonS3IndexProxy::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon_s3_index_proxy/proxy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, cache_options={})
  @index_file_url = index_file_url
  @options = { expires_in: expires_in }.merge(cache_options)
end

Instance Attribute Details

#index_file_urlObject (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

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 3

def options
  @options
end

Instance Method Details

#callObject



10
11
12
# File 'lib/amazon_s3_index_proxy/proxy.rb', line 10

def call
  index_file
end