Class: Aircall::Users

Inherits:
Object
  • Object
show all
Includes:
Connection
Defined in:
lib/aircall/users.rb

Instance Attribute Summary

Attributes included from Connection

#aircall

Instance Method Summary collapse

Methods included from Connection

#get_method_arguments, #initialize, #require_settings

Instance Method Details

#get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) ⇒ Object



5
6
7
# File 'lib/aircall/users.rb', line 5

def get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
  get(construct_request_with_arguments("/users", binding))
end

#get_by_id(user_id) ⇒ Object



9
10
11
# File 'lib/aircall/users.rb', line 9

def get_by_id(user_id)
  get("/users/#{user_id}")
end