module Ragdoll::Core
Constants
- Model
-
Modelrepresents a provider and model name. It is initialized with a string in the format “provider/model”. The provider is optional. Can be initialized with nil or empty string. - VERSION
Public Class Methods
Source
# File lib/ragdoll/core.rb, line 79 def self.client(_config = nil) Client.new end
Factory method for creating clients
Source
# File lib/ragdoll/core.rb, line 60 def self.config @config ||= Configuration.new end
Source
# File lib/ragdoll/core.rb, line 68 def self.configure yield(config) end
Source
# File lib/ragdoll/core.rb, line 89 def self.default_client @default_client ||= Client.new end
Source
# File lib/ragdoll/core.rb, line 73 def self.reset_configuration! @config = Configuration.new @default_client = nil end
Reset configuration (useful for testing)