Module: Taobao::Util

Included in:
Category, Product, Property
Defined in:
lib/taobao/util.rb

Instance Method Summary collapse

Instance Method Details

#to_object(hash) ⇒ Object



2
3
4
# File 'lib/taobao/util.rb', line 2

def to_object(hash)
  hash.each { |k, v| self.instance_variable_set "@#{k}", v }
end