Class: Teamsupport::REST::Client

Inherits:
Client
  • Object
show all
Includes:
API
Defined in:
lib/teamsupport/rest/client.rb

Instance Attribute Summary

Attributes inherited from Client

#api_key, #api_secret, #api_url, #user_agent

Instance Method Summary collapse

Methods included from Tickets

#create_ticket, #delete_ticket, #ticket, #ticket_actions, #tickets, #update_ticket

Methods included from Utils

flat_pmap, pmap

Methods included from Products

#create_product, #delete_product, #product, #products, #update_product

Methods included from Customers

#create_customer, #customer, #customer_products, #customer_tickets, #customers, #delete_customer, #update_customer

Methods inherited from Client

#auth, #initialize

Constructor Details

This class inherits a constructor from Teamsupport::Client

Instance Method Details

#auth?Boolean

Checks for the existence of an authentication hash on the Client

Examples:

teamsupport_client = Teamsupport::REST::Client.new(api_key: 'AK', api_secret: 'AS')
teamsupport_client.auth?

Returns:

  • (Boolean)


20
21
22
# File 'lib/teamsupport/rest/client.rb', line 20

def auth?
  super
end