Class: EmbedUsers
Overview
Instance Attribute Summary
Attributes inherited from Resource
#options
Instance Method Summary
collapse
Methods inherited from Resource
#base_delete, #base_get, #base_post, #base_put, #base_request, #initialize
Constructor Details
This class inherits a constructor from Resource
Instance Method Details
#delete(id) ⇒ Object
15
16
17
|
# File 'lib/onvo/embed_users.rb', line 15
def delete(id)
base_delete("/embed-users/#{id}")
end
|
#get(id) ⇒ Object
11
12
13
|
# File 'lib/onvo/embed_users.rb', line 11
def get(id)
base_get("/embed-users/#{id}")
end
|
#get_access_token(id) ⇒ Object
31
32
33
|
# File 'lib/onvo/embed_users.rb', line 31
def get_access_token(id)
base_get("/embed-users/#{id}/token")
end
|
#list ⇒ Object
7
8
9
|
# File 'lib/onvo/embed_users.rb', line 7
def list
base_get('/embed-users')
end
|
#upsert(id, name, email, metadata = {}) ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/onvo/embed_users.rb', line 19
def upsert(id, name, email, metadata = {})
base_post(
'/embed-users',
{
'id': id,
'name': name,
'email': email,
'metadata': metadata
}
)
end
|