Sha256: efb4b6b19d47a8b8e5b4f063e99a54a08baa0824a019817c6a6e3fadf7b37f96
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
# frozen_string_literal: true require "faraday" require "rails" require_relative "schoology_client/version" module SchoologyClient class << self attr_accessor :configuration end autoload :Client, "schoology_client/client" autoload :Configuration, "schoology_client/configuration" autoload :Object, "schoology_client/object" autoload :Resource, "schoology_client/resource" autoload :Error, "schoology_client/error" # High-level categories of Schoology API calls autoload :GroupResource, "schoology_client/resources/group" # Classes used to return a nicer object wrapping the response data autoload :Group, "schoology/objects/group" autoload :OAuth, 'schoology_client/oauth' Faraday::Request.register_middleware oauth: -> { OAuth } def self.configuration @configuration ||= SchoologyClient::Configuration.new end def self.configure yield(configuration) end def initialize @oauth_consumer_key = self.class.configuration.oauth_consumer_key @oauth_consumer_secret = self.class.configuration.oauth_consumer_secret @url = self.class.configuration.url end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
strongmind-schoology-client-0.1.5 | lib/schoology_client.rb |
strongmind-schoology-client-0.1.4 | lib/schoology_client.rb |