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

Class Method Details

.applications_urlString

Returns url for the applications.

Returns:

  • (String)

    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_urlString

Returns url for the clouds.

Returns:

  • (String)

    url for the clouds



4
5
6
# File 'lib/scalarium-api-wrapper.rb', line 4

def self.clouds_url
  Scalarium.configuration.clouds_url
end

.configurationConfiguration Also known as: configure

Returns The configuration singleton.

Returns:



18
19
20
# File 'lib/scalarium-api-wrapper.rb', line 18

def self.configuration
  @configuration ||= Scalarium::Configuration.new
end

.headersObject



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