Sha256: 55881ab1498959a05f5b0e9b20d79ce9feba261f2c011b395db3bfd42ec91bd1
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module OptimizePlayer module Converter def self.convert_to_object(context, response) case response when Array response.map { |r| convert_to_object(context, r) } when Hash obj_klass = response['object_class'] klass = Object.const_get("OptimizePlayer::#{obj_klass}") klass.construct_from(context, response) else response end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
optimizeplayer-0.0.1 | lib/optimize_player/converter.rb |