Module: Taobao::Util

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

Instance Method Summary collapse

Instance Method Details

#to_object(hash) ⇒ Object



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

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