Sha256: 9b81b38505958871a89335a4b6de3de62b4f7c9e37145fa6ff4b5b8151da8a63
Contents?: true
Size: 352 Bytes
Versions: 15
Compression:
Stored size: 352 Bytes
Contents
module Eucalyptus class Response < OpenStruct # extend OpenStruct to work with nested hashes def initialize(hash) @table = {} @hash_table = {} hash.each do |k, v| @table[k.to_sym] = (v.is_a?(Hash) ? self.class.new(v) : v) @hash_table[k.to_sym] = v new_ostruct_member(k) end end end end
Version data entries
15 entries across 15 versions & 1 rubygems