Class: EmbedUsers

Inherits:
Resource show all
Defined in:
lib/onvo/embed_users.rb

Overview

Embed user endpoints

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, #merge_options

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



23
24
25
# File 'lib/onvo/embed_users.rb', line 23

def get_access_token(id)
  base_get("/embed-users/#{id}/token")
end

#listObject



7
8
9
# File 'lib/onvo/embed_users.rb', line 7

def list
  base_get('/embed-users')
end

#upsert(body) ⇒ Object



19
20
21
# File 'lib/onvo/embed_users.rb', line 19

def upsert(body)
  base_post('/embed-users', body: body)
end