Class: Talkable::API::Person

Inherits:
Base
  • Object
show all
Defined in:
lib/talkable/api/person.rb

Class Method Summary collapse

Methods inherited from Base

get, post, put

Class Method Details

.find(email_or_username) ⇒ Object



5
6
7
# File 'lib/talkable/api/person.rb', line 5

def find(email_or_username)
  get "/people/#{email_or_username}"
end

.update(email_or_username, params) ⇒ Object



9
10
11
12
13
# File 'lib/talkable/api/person.rb', line 9

def update(email_or_username, params)
  put "/people/#{email_or_username}", {
    data: params
  }
end