Module: RedoxEngine::Util
Overview
utility methods for serializing responses
Instance Method Summary collapse
Instance Method Details
#map_hash_to_attributes(hash) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/redox-engine/util.rb', line 4 def map_hash_to_attributes(hash) hash.map do |key, val| define_singleton_method(key.to_sym) do val end map_hash_to_attributes(val) if val.respond_to? :each_key end end |