Module: KB::Updatable::ClassMethods
- Defined in:
- lib/kb/models/concerns/updatable.rb
Instance Method Summary collapse
Instance Method Details
#update(key, attributes) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/kb/models/concerns/updatable.rb', line 10 def update(key, attributes) api_response = kb_client.update(key, attributes) attributes_from_response(api_response) rescue Faraday::Error => e raise KB::Error.from_faraday(e) end |