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