Module: SelectiveAttributeProxy::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



300
301
302
303
304
305
306
307
# File 'lib/aliyun/oss/extensions.rb', line 300

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