# File lib/aws/core/resource.rb, line 377 def attributes_from_response_object resp_obj attributes = {} @provides.each do |attr_name, options| attr = @klass.attributes[attr_name] method = options[:get_as] || attr.get_as v = case when resp_obj.respond_to?(:key?) && resp_obj.key?(method.to_s) resp_obj[method.to_s] when resp_obj.respond_to?(method) resp_obj.send(method) else nil end v = v.value if v and options[:value_wrapped] v = attr.translate_output_value(v) attributes[attr_name] = v end attributes end