Module: SelectiveAttributeProxy::ClassMethods

Defined in:
lib/aliyun/oss/extensions.rb

Instance Method Summary collapse

Instance Method Details

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



341
342
343
344
345
346
347
348
# File 'lib/aliyun/oss/extensions.rb', line 341

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