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