Module: Scalarium
- Defined in:
- lib/scalarium-api-wrapper.rb,
lib/scalarium-api-wrapper/api.rb,
lib/scalarium-api-wrapper/version.rb,
lib/scalarium-api-wrapper/abstract_api.rb
Defined Under Namespace
Modules: Api Classes: API, AbstractAPI, Configuration
Class Method Summary collapse
-
.applications_url ⇒ String
Url for the applications.
-
.clouds_url ⇒ String
Url for the clouds.
-
.configuration ⇒ Configuration
(also: configure)
The configuration singleton.
- .headers ⇒ Object
Class Method Details
.applications_url ⇒ String
Returns url for the applications.
9 10 11 |
# File 'lib/scalarium-api-wrapper.rb', line 9 def self.applications_url Scalarium.configuration.applications_url end |
.clouds_url ⇒ String
Returns url for the clouds.
4 5 6 |
# File 'lib/scalarium-api-wrapper.rb', line 4 def self.clouds_url Scalarium.configuration.clouds_url end |
.configuration ⇒ Configuration Also known as: configure
Returns The configuration singleton.
18 19 20 |
# File 'lib/scalarium-api-wrapper.rb', line 18 def self.configuration @configuration ||= Scalarium::Configuration.new end |
.headers ⇒ Object
13 14 15 |
# File 'lib/scalarium-api-wrapper.rb', line 13 def self.headers return {'X-Scalarium-Token' => "#{Scalarium.configuration.api_token}", 'Accept' => 'application/vnd.scalarium-v1+json' } end |