Class: Notion::Users

Inherits:
Object
  • Object
show all
Includes:
RequestClient
Defined in:
lib/notion-sdk-ruby/resources/users.rb

Instance Method Summary collapse

Methods included from RequestClient

#delete, #get, #patch, #post

Instance Method Details

#listObject


5
6
7
8
# File 'lib/notion-sdk-ruby/resources/users.rb', line 5

def list
  response = get("/v1/users")
  List.new(response.body)
end

#retrieve(id) ⇒ Object


10
11
12
13
# File 'lib/notion-sdk-ruby/resources/users.rb', line 10

def retrieve(id)
  response = get("/v1/users/#{id}")
  User.new(response.body)
end