module OrchestrateIo::Configuration

Constants

DEFAULT_ENDPOINT
DEFAULT_REQUEST_HEADERS
VALID_OPTIONS_KEYS

Public Class Methods

extended(base) click to toggle source
# File lib/orchestrate.io/configuration.rb, line 25
def self.extended(base)
  base.reset
end

Public Instance Methods

options() click to toggle source
# File lib/orchestrate.io/configuration.rb, line 29
def options
  options = {}
  VALID_OPTIONS_KEYS.each {|k| options[k] = send(k)}
  options
end
reset() click to toggle source
# File lib/orchestrate.io/configuration.rb, line 35
def reset
  self.request_headers = DEFAULT_REQUEST_HEADERS
  self.endpoint        = DEFAULT_ENDPOINT
  self.api_key         = ""
  self.version         = "v0"
  self.verbose         = false
end