class ServiceNow::Client::Tables

Public Class Methods

new(connection, table_name) click to toggle source
Calls superclass method ServiceNow::Api::new
# File lib/servicenow/client/tables.rb, line 3
def initialize(connection, table_name)
  super(connection)
  @table_name = table_name
end

Public Instance Methods

all(params = {}) click to toggle source
# File lib/servicenow/client/tables.rb, line 8
def all(params = {})
  get_many "table/#{@table_name}", params
end
create(params = {}) click to toggle source
# File lib/servicenow/client/tables.rb, line 16
def create(params = {})
  post "table/#{@table_name}", params
end
find(id) click to toggle source
# File lib/servicenow/client/tables.rb, line 12
def find(id)
  get_one "table/#{@table_name}/#{id}"
end