Sha256: b851130891d4438bfd93f00b65bc28fb27a0bfe7c0c6b4ac9e28e41c9a1a90c8
Contents?: true
Size: 350 Bytes
Versions: 14
Compression:
Stored size: 350 Bytes
Contents
module JanioAPI class Configuration attr_accessor :api_host, :api_token, :api_tokens end def self.config @config ||= Configuration.new end def self.config=(config) @config = config end def self.configure yield config # set the site once user configure JanioAPI::Base.site = JanioAPI.config.api_host end end
Version data entries
14 entries across 14 versions & 1 rubygems