module Taobao::Util

Public Instance Methods

to_object(hash) click to toggle source
# File lib/taobao/util.rb, line 2
def to_object(hash)
  hash.each { |k, v| self.instance_variable_set "@#{k}", v }
end