lib/washbullet/api/contacts.rb in washbullet-0.3.1 vs lib/washbullet/api/contacts.rb in washbullet-0.4.0

- old
+ new

@@ -1,13 +1,23 @@ module Washbullet module API module Contacts def contacts - get '/v2/contacts' + response = get('/v2/contacts') + + Washbullet::Contact.from_response(response) end - def delete_contact(contact_iden) - delete "/v2/contacts/#{contact_iden}" + def create_contact + raise NotImplementedError + end + + def update_contact + raise NotImplementedError + end + + def delete_contact + raise NotImplementedError end end end end