Class: Aliyun::Oss::Struct::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/aliyun/oss/struct.rb

Direct Known Subclasses

Bucket, Cors, LifeCycle, Logging, Multipart, Object, Part, Referer, Website

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



5
6
7
8
9
10
# File 'lib/aliyun/oss/struct.rb', line 5

def initialize(attributes = {})
  attributes.each do |key, value|
    m = "#{Utils.underscore(key)}=".to_sym
    send(m, value) if self.respond_to?(m)
  end
end