Module: NotionRuby::API::Users

Included in:
NotionRuby
Defined in:
lib/notion_ruby/api/users.rb

Defined Under Namespace

Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#users(id = nil, params = {}) ⇒ Object



9
10
11
12
13
# File 'lib/notion_ruby/api/users.rb', line 9

def users(id = nil, params = {})
  params = id if id.is_a? Hash
  path_prefix = !id.is_a?(Hash) && id ? "/v1/users/#{id}" : "/v1/users"
  Proxy.new(connection, path_prefix, params)
end