Module: DeskApi
- Extended by:
- Configuration
- Defined in:
- lib/desk_api.rb,
lib/desk_api/version.rb,
lib/desk_api/request/retry.rb,
lib/desk_api/error/conflict.rb,
lib/desk_api/error/forbidden.rb,
lib/desk_api/error/not_found.rb,
lib/desk_api/error/bad_gateway.rb,
lib/desk_api/error/bad_request.rb,
lib/desk_api/error/client_error.rb,
lib/desk_api/error/parser_error.rb,
lib/desk_api/error/server_error.rb,
lib/desk_api/error/unauthorized.rb,
lib/desk_api/error/not_acceptable.rb,
lib/desk_api/response/raise_error.rb,
lib/desk_api/error/gateway_timeout.rb,
lib/desk_api/error/too_many_requests.rb,
lib/desk_api/error/method_not_allowed.rb,
lib/desk_api/error/configuration_error.rb,
lib/desk_api/error/service_unavailable.rb,
lib/desk_api/error/unprocessable_entity.rb,
lib/desk_api/error/internal_server_error.rb,
lib/desk_api/error/unsupported_media_type.rb
Defined Under Namespace
Modules: Configuration, Default, Request, Response Classes: Client, Error, RateLimit, Resource
Constant Summary collapse
- VERSION =
'0.5.8'
Instance Attribute Summary
Attributes included from Configuration
#connection_options, #consumer_key, #consumer_secret, #endpoint, #middleware, #password, #subdomain, #token, #token_secret, #username
Class Method Summary collapse
-
.client ⇒ DeskApi::Client
Delegate to a DeskApi::Client.
- .method_missing(method_name, *args, &block) ⇒ Object
Methods included from Configuration
configure, credentials?, keys, reset!
Class Method Details
.client ⇒ DeskApi::Client
Delegate to a DeskApi::Client
17 18 19 20 |
# File 'lib/desk_api.rb', line 17 def client return @client if instance_variable_defined?(:@client) && @client.hash == .hash @client = DeskApi::Client.new() end |
.method_missing(method_name, *args, &block) ⇒ Object
22 23 24 |
# File 'lib/desk_api.rb', line 22 def method_missing(method_name, *args, &block) client.send(method_name, *args, &block) end |