# File lib/aws/dynamo_db/types.rb, line 23 def value_from_response(hash) (type, value) = hash.to_a.first case type when "S", :s value when "SS", :ss Set[*value] when "N", :n BigDecimal(value.to_s) when "NS", :ns Set[*value.map { |v| BigDecimal(v.to_s) }] end end