class Aircall::Calls
Public Instance Methods
get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/calls.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("/calls", binding)) end
get_by_id(call_id)
click to toggle source
# File lib/aircall/calls.rb, line 9 def get_by_id(call_id) get("/calls/#{call_id}") end
get_by_phone_number(phone_number, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/calls.rb, line 17 def get_by_phone_number(phone_number, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) get(construct_request_with_arguments("/calls/search", binding)) end
get_by_user_id(user_id, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
click to toggle source
# File lib/aircall/calls.rb, line 13 def get_by_user_id(user_id, page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil) get(construct_request_with_arguments("/calls/search", binding)) end