Sha256: 30837dc89fd642bb6ab459c89f7a2e844361a272b1ee9ec3c3848d145e1f8647

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

require 'active_support/all'
require 'loquor'

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

RESOURCES = %w{
  community
  community_membership
  ecommerce_subscription
  friendship
  group
  group_discussion
  group_discussion_post
  group_invite
  group_membership
  item_comment
  knowledge_bank_question
  knowledge_bank_answer
  media_file
  mesh_heading
  message
  message_thread
  message_thread_contributor
  mnemonic
  notification
  partner
  premium_tutorial
  syllabus_item
  user
  user_settings
}
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

3 entries across 3 versions & 1 rubygems

Version Path
meducation_sdk-0.5.0 lib/meducation_sdk.rb
meducation_sdk-0.4.1 lib/meducation_sdk.rb
meducation_sdk-0.4.0 lib/meducation_sdk.rb