Module: Integra365

Extended by:
WrAPI::Configuration, WrAPI::RespondTo
Defined in:
lib/integra365.rb,
lib/integra365/api.rb,
lib/integra365/error.rb,
lib/integra365/client.rb,
lib/integra365/version.rb,
lib/integra365/authentication.rb,
lib/integra365/client/tenants.rb,
lib/integra365/client/backup_job_reporting.rb

Defined Under Namespace

Modules: Authentication Classes: API, AuthenticationError, Client, ConfigurationError, Integra365Error

Constant Summary collapse

DEFAULT_ENDPOINT =
'https://api.integra-bcs.nl/Api/V1/'.freeze
DEFAULT_UA =
"Integra365 Ruby API wrapper #{Integra365::VERSION}".freeze
VERSION =
'0.2.0'

Class Method Summary collapse

Class Method Details

.client(options = {}) ⇒ Integra365::Client

Alias for Integra365::Client.new

Returns:



16
17
18
19
20
21
# File 'lib/integra365.rb', line 16

def self.client(options = {})
  Integra365::Client.new({
    endpoint: DEFAULT_ENDPOINT,
    user_agent: DEFAULT_UA
  }.merge(options))
end

.resetObject



23
24
25
26
27
# File 'lib/integra365.rb', line 23

def self.reset
  super
  self.endpoint = DEFAULT_ENDPOINT
  self.user_agent = DEFAULT_UA
end