Module: Toolhound

Extended by:
Configurable
Defined in:
lib/toolhound-ruby.rb,
lib/toolhound-ruby/job.rb,
lib/toolhound-ruby/base.rb,
lib/toolhound-ruby/util.rb,
lib/toolhound-ruby/error.rb,
lib/toolhound-ruby/client.rb,
lib/toolhound-ruby/rental.rb,
lib/toolhound-ruby/vendor.rb,
lib/toolhound-ruby/default.rb,
lib/toolhound-ruby/project.rb,
lib/toolhound-ruby/version.rb,
lib/toolhound-ruby/incident.rb,
lib/toolhound-ruby/inventory.rb,
lib/toolhound-ruby/rental_item.rb,
lib/toolhound-ruby/transaction.rb,
lib/toolhound-ruby/client/users.rb,
lib/toolhound-ruby/configurable.rb,
lib/toolhound-ruby/manufacturer.rb,
lib/toolhound-ruby/rental_charge.rb,
lib/toolhound-ruby/authentication.rb,
lib/toolhound-ruby/inventory_item.rb,
lib/toolhound-ruby/purchase_order.rb,
lib/toolhound-ruby/client/projects.rb,
lib/toolhound-ruby/purchase_receipt.rb,
lib/toolhound-ruby/purchase_order_item.rb

Overview

EXECUTE HumanResources.uspGetEmployees @FirstName = N’Pilar’, @LastName = N’Ackerman’;

Defined Under Namespace

Modules: Authentication, Configurable, Default, Util Classes: ApplicationCredentialsRequired, BadGateway, BadRequest, Base, Client, ClientError, Conflict, Error, Forbidden, Incident, InternalServerError, Inventory, InventoryItem, Job, Manufacturer, MethodNotAllowed, MissingContentType, MissingParams, NotAcceptable, NotFound, NotImplemented, Project, PurchaseOrder, PurchaseOrderItem, PurchaseReceipt, Rental, RentalCharge, RentalItem, ServerError, ServiceUnavailable, TooManyLoginAttempts, TooManyRequests, Transaction, Unauthorized, UnprocessableEntity, UnsupportedMediaType, Vendor

Constant Summary collapse

VERSION =
"1.0.33"

Instance Attribute Summary

Attributes included from Configurable

#dataserver, #password, #port, #timeout, #username

Class Method Summary collapse

Methods included from Configurable

configure, keys, options, reset!

Class Method Details

.clientToolhound::Client

API client based on configured options Configurable

Returns:



49
50
51
52
# File 'lib/toolhound-ruby.rb', line 49

def client
  @client = Toolhound::Client.new(options) unless defined?(@client) && @client.same_options?(options)
  @client
end

.respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


55
56
57
# File 'lib/toolhound-ruby.rb', line 55

def respond_to_missing?(method_name, include_private=false)
  client.respond_to?(method_name, include_private)
end