Method: Atlas::Resource#update_with_response
- Defined in:
- lib/atlas/resource.rb
#update_with_response(response, except_keys = []) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/atlas/resource.rb', line 18 def update_with_response(response, except_keys = []) # remove keys that shouldn't be included except_keys.each { |k| response.delete(k) } response.each { |k, v| send("#{k}=", v) if respond_to?("#{k}=") } end |