Sha256: 5996ab62aeeb4df55f3c155e771731a5be5613f52f5a334f8c4ce109729a7055
Contents?: true
Size: 997 Bytes
Versions: 3
Compression:
Stored size: 997 Bytes
Contents
# frozen_string_literal: true require_relative "sophia_service/version" # Implement all Sophia API calls module SophiaService autoload :ApiClient, "sophia_service/api_client" autoload :SophiaRoutes, "sophia_service/sophia_routes" autoload :SophiaResponse, "sophia_service/sophia_response" class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) end # Implement Sophia Service configuration class Configuration attr_reader :base_url, :sophia_user, :sophia_password, :is_sophia_production def initialize @base_url = "" @sophia_user = "" @sophia_password = "" @is_sophia_production = true end def set_configuration(base_url:, sophia_user:, sophia_password:, is_sophia_production:) @base_url = base_url @sophia_user = sophia_user @sophia_password = sophia_password @is_sophia_production = is_sophia_production end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sophia_service-1.1.0 | lib/sophia_service.rb |
sophia_service-1.0.0 | lib/sophia_service.rb |
sophia_service-0.3.2 | lib/sophia_service.rb |