class Kaseya::BMS::Api
Attributes
connection[R]
Public Class Methods
new(connection)
click to toggle source
# File lib/kaseya/bms/api.rb, line 5 def initialize(connection) @connection = connection end
Public Instance Methods
delete(path)
click to toggle source
# File lib/kaseya/bms/api.rb, line 25 def delete(path) connection.delete(path) end
get_many(path, params = {})
click to toggle source
# File lib/kaseya/bms/api.rb, line 9 def get_many(path, params = {}) Kaseya::Collection.new connection.get(path, params) end
get_one(path, params = {})
click to toggle source
# File lib/kaseya/bms/api.rb, line 13 def get_one(path, params = {}) Kaseya::Response.new connection.get(path, params) end
post(path, params = {})
click to toggle source
# File lib/kaseya/bms/api.rb, line 17 def post(path, params = {}) Kaseya::Result.new connection.post(path, params) end
put(path, params = {})
click to toggle source
# File lib/kaseya/bms/api.rb, line 21 def put(path, params = {}) Kaseya::Result.new connection.put(path, params) end