Module: SelectiveAttributeProxy::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



281
282
283
284
285
286
287
288
# File 'lib/aws/s3/extensions.rb', line 281

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