Module: BusinessInsightApiClient
- Defined in:
- lib/business_insight_api_client.rb,
lib/business_insight_api_client/mash.rb,
lib/business_insight_api_client/client.rb,
lib/business_insight_api_client/errors.rb,
lib/business_insight_api_client/helpers.rb,
lib/business_insight_api_client/version.rb,
lib/business_insight_api_client/api/groups.rb,
lib/business_insight_api_client/api/animals.rb,
lib/business_insight_api_client/api/calendars.rb,
lib/business_insight_api_client/api/applications.rb,
lib/business_insight_api_client/api/installations.rb,
lib/business_insight_api_client/helpers/restclient.rb,
lib/business_insight_api_client/helpers/authorization.rb
Overview
BusinessInsightApiClient configuration class This class allows to set a configuration uses in the whole application until reloaded.
Defined Under Namespace
Modules: Api, Errors, Helpers Classes: Client, Mash
Constant Summary collapse
- VERSION =
'0.2.0'
Class Attribute Summary collapse
-
.api_url ⇒ String
The api url, default: api.nedap-bi.com.
-
.authorization_url ⇒ String
The authorization url of the api, default: nedap-bi.com.
-
.client_id ⇒ String
- String
-
the client id uses in OAuth authorization.
-
.client_secret ⇒ String
The client secret uses in OAuth authorization.
-
.default_content_type ⇒ String
The default content, default: application/json.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Boolean, true
Configures the business insight api for usage.
Class Attribute Details
.api_url ⇒ String
Returns the api url, default: api.nedap-bi.com.
17 18 19 |
# File 'lib/business_insight_api_client.rb', line 17 def api_url @api_url end |
.authorization_url ⇒ String
Returns the authorization url of the api, default: nedap-bi.com.
21 22 23 |
# File 'lib/business_insight_api_client.rb', line 21 def @authorization_url end |
.client_id ⇒ String
Returns [String] the client id uses in OAuth authorization.
29 30 31 |
# File 'lib/business_insight_api_client.rb', line 29 def client_id @client_id end |
.client_secret ⇒ String
Returns the client secret uses in OAuth authorization.
33 34 35 |
# File 'lib/business_insight_api_client.rb', line 33 def client_secret @client_secret end |
.default_content_type ⇒ String
Returns the default content, default: application/json.
25 26 27 |
# File 'lib/business_insight_api_client.rb', line 25 def default_content_type @default_content_type end |
Class Method Details
.configure {|configuration| ... } ⇒ Boolean, true
Configures the business insight api for usage. This method expects an configuration block.
48 49 50 51 |
# File 'lib/business_insight_api_client.rb', line 48 def configure yield self true end |