class Spage::Config

Global Configuration for the Spage Client

Public Class Methods

new() click to toggle source
# File lib/spage/config.rb, line 7
def initialize
  @api_endpoint = 'https://api.statuspage.io'
  @api_version = 'v1'
  @api_key = nil
end

Public Instance Methods

api_key(api_key = nil) click to toggle source
# File lib/spage/config.rb, line 13
def api_key(api_key = nil)
  (api_key && @api_key = api_key) || @api_key
end
api_version(api_version = nil) click to toggle source
# File lib/spage/config.rb, line 17
def api_version(api_version = nil)
  (api_version && @api_version = api_version) || @api_version
end