module BusinessInsightApiClient
BusinessInsightApiClient
configuration class This class allows to set a configuration uses in the whole application until reloaded.
Constants
- VERSION
Attributes
@!attribute [rw] api_url
@return [String] the api url, default: api.nedap-bi.com
@attribute [rw] client_id
@return [String] [String] the client id uses in OAuth authorization
@attribute [rw] client_secret
@return [String] the client secret uses in OAuth authorization
@!attribute [rw] default_content_type
@return [String] the default content, default: application/json
Public Class Methods
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