module Unforlogistics::Core::Phones
Public Instance Methods
create_phone(attrs={})
click to toggle source
# File lib/unforlogistics/core/phones.rb, line 14 def create_phone(attrs={}) response = post_request('/phones', attrs) get_persistance_response(response) end
get_phone(id)
click to toggle source
# File lib/unforlogistics/core/phones.rb, line 10 def get_phone(id) get_request("/phones/#{id}").body end
get_phones(filters={})
click to toggle source
# File lib/unforlogistics/core/phones.rb, line 4 def get_phones(filters={}) response = get_request('/phones', filters) get_paging_response(response) end
set_phone_status(id, status)
click to toggle source
# File lib/unforlogistics/core/phones.rb, line 26 def set_phone_status(id, status) response = put_request("/phones/#{id}/status", { value: status }) get_persistance_response(response) end
update_phone(id, attrs={})
click to toggle source
# File lib/unforlogistics/core/phones.rb, line 20 def update_phone(id, attrs={}) response = put_request("/phones/#{id}", attrs) get_persistance_response(response) end