Module: LookerSDK

Extended by:
Configurable
Defined in:
lib/looker-sdk/error.rb,
lib/looker-sdk.rb,
lib/looker-sdk/client.rb,
lib/looker-sdk/default.rb,
lib/looker-sdk/version.rb,
lib/looker-sdk/rate_limit.rb,
lib/looker-sdk/configurable.rb,
lib/looker-sdk/authentication.rb,
lib/looker-sdk/client/dynamic.rb,
lib/looker-sdk/response/raise_error.rb

Overview

The MIT License (MIT)

Copyright © 2022 Looker Data Sciences, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Defined Under Namespace

Modules: Authentication, Configurable, Default, Response Classes: ApplicationCredentialsRequired, BadGateway, BadRequest, Client, ClientError, Conflict, Error, Forbidden, InternalServerError, MethodNotAllowed, MissingContentType, NotAcceptable, NotFound, NotImplemented, OneTimePasswordRequired, RateLimit, RateLimitExceeded, ServerError, ServiceUnavailable, TooManyLoginAttempts, TooManyRequests, Unauthorized, UnprocessableEntity, UnsupportedMediaType

Constant Summary collapse

VERSION =

Current version

Returns:

  • (String)
"0.1.7"

Instance Attribute Summary

Attributes included from Configurable

#access_token, #api_endpoint, #auto_paginate, #client_id, #client_secret, #connection_options, #default_media_type, #faraday, #lazy_swagger, #middleware, #netrc, #netrc_file, #per_page, #proxy, #raw_responses, #shared_swagger, #swagger, #user_agent, #web_endpoint

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Configurable

configure, keys, netrc?, reset!

Class Method Details

.clientLookerSDK::Client

API client based on configured options Configurable

Returns:



65
66
67
68
# File 'lib/looker-sdk.rb', line 65

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

Instance Method Details

#respond_to?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


73
# File 'lib/looker-sdk.rb', line 73

def respond_to?(method_name, include_private=false); client.respond_to?(method_name, include_private) || super; end

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

Returns:

  • (Boolean)


71
# File 'lib/looker-sdk.rb', line 71

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