Sha256: e810262cc41071952bb01a976c25e99c8a2c4e9f1e2d4a19c7c49510a835df14

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

require 'active_support/all'
require 'loquor'

require "meducation_sdk/version"
require "meducation_sdk/configuration"
require "meducation_sdk/mocker"

RESOURCES = %w{
  item_comment
  media_file
  mesh_heading
  mnemonic
  notification
  partner
  premium_tutorial
  syllabus_item
  user
}
RESOURCES.each do |resource|
  require "meducation_sdk/resources/#{resource}"
end

module MeducationSDK
  def self.config
    @config ||= Configuration.new
    if block_given?
      yield @config
    else
      @config
    end
  end

  def self.mock!
    MeducationSDK::Mocker.mock!
  end
end

=begin
  Interactors = {
    "Group::Discussion"     => "/group_discussions",
    "Group::DiscussionPost" => "/group_discussion_posts",
    "Item::Comment"         => "/item_comments",
    "MediaFile"             => "/media_files",
    "MeshHeading"           => "/mesh_headings",
    "Mnemonic"              => "/mnemonics",
    "Premium::Tutorial"     => "/premium_tutorials",
    "Partner"               => "/partners",
    "SyllabusItem"          => "/syllabus_items",
    "User"                  => "/users"
    #
    #ExamRoom::Practice::Exam::Challenge
    #Friendship
    #Ecommerce::Subscription
    #Message.find
    #Group::Membership
    #Group::Invite
    #KnowledgeBank::Answer
    #User::Friendship
  }
=end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
meducation_sdk-0.3.4 lib/meducation_sdk.rb
meducation_sdk-0.3.3 lib/meducation_sdk.rb
meducation_sdk-0.3.2 lib/meducation_sdk.rb
meducation_sdk-0.3.1 lib/meducation_sdk.rb
meducation_sdk-0.3.0 lib/meducation_sdk.rb
meducation_sdk-0.2.0 lib/meducation_sdk.rb
meducation_sdk-0.1.0 lib/meducation_sdk.rb