Module: SelectiveAttributeProxy::ClassMethods

Defined in:
lib/aws/s3/extensions.rb

Instance Method Summary collapse

Instance Method Details

#proxy_to(attribute_name, options = {}) ⇒ Object



299
300
301
302
303
304
305
306
# File 'lib/aws/s3/extensions.rb', line 299

def proxy_to(attribute_name, options = {})
  if attribute_name.is_a?(Hash)
    options = attribute_name
  else
    self.attribute_proxy = attribute_name
  end
  self.attribute_proxy_options = options
end