module BusinessInsightApiClient

BusinessInsightApiClient configuration class This class allows to set a configuration uses in the whole application until reloaded.

Constants

VERSION

Attributes

api_url[RW]

@!attribute [rw] api_url @return [String] the api url, default: api.nedap-bi.com

authorization_url[RW]

@!attribute [rw] authorization_url @return [String] the authorization url of the api, default: nedap-bi.com

client_id[RW]

@attribute [rw] client_id @return [String] [String] the client id uses in OAuth authorization

client_secret[RW]

@attribute [rw] client_secret @return [String] the client secret uses in OAuth authorization

default_content_type[RW]

@!attribute [rw] default_content_type @return [String] the default content, default: application/json

Public Class Methods

configure() { |self| ... } click to toggle source

Configures the business insight api for usage. This method expects an configuration block. @example

BusinessInsightApiClient.configure do |conf|
  conf.client_id = 'someclientid'
end

@yield [configuration] the configuration class. @yieldparam api_url [String] @yieldparam authorization_url [String] @yieldparam default_content_type [String] @yieldparam client_id [String] @yieldparam client_secret [String] @return [Boolean, true]

# File lib/business_insight_api_client.rb, line 48
def configure
  yield self
  true
end