Sha256: 373f2c4c1adef547b26ce68d6db214d49c8faddee9611e5e3acdc4ff355e571d

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

require "faraday"
require "json"
require "faraday_middleware"
require "active_support/all"
require "active_model"

require "absorb_api/relations"
require "absorb_api/create"
require "absorb_api/where"
require "absorb_api/collection"

require "absorb_api/version"
require "absorb_api/configuration"
require "absorb_api/record"
require "absorb_api/user"
require "absorb_api/course"
require "absorb_api/course_enrollment"
require "absorb_api/lesson_enrollment"
require "absorb_api/category"
require "absorb_api/certificate"
require "absorb_api/chapter"
require "absorb_api/curriculum"
require "absorb_api/department"
require "absorb_api/tag"
require "absorb_api/session_schedule"
require "absorb_api/role"
require "absorb_api/resource"
require "absorb_api/prerequisite"
require "absorb_api/lesson"
require "absorb_api/authorize"
require "absorb_api/api"

module AbsorbApi
  class ResourceNotFound < StandardError; end
  class RouteNotFound < StandardError; end
  class ValidationError < StandardError; end

  cattr_accessor :authorization

  def self.token
    self.authorization ||= Authorize.new

    self.authorization.token
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
absorb_api-0.9.3 lib/absorb_api.rb