Sha256: 2e5e74bc7db8e6b167c815957598471554525f17ac672693df3820c3b9f2358d

Contents?: true

Size: 893 Bytes

Versions: 2

Compression:

Stored size: 893 Bytes

Contents

require 'active_support/all'
require 'loquor'

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

RESOURCES = %w{
  collection
  collection_section
  collection_topic
  comment
  community
  community_membership
  ecommerce_subscription
  friendship
  group
  group_discussion
  group_discussion_post
  group_invite
  group_membership
  knowledge_bank_question
  knowledge_bank_answer
  media_file
  mesh_heading
  message
  message_thread
  message_thread_contributor
  mnemonic
  notification
  partner
  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meducation_sdk-1.2.2 lib/meducation_sdk.rb
meducation_sdk-1.2.1 lib/meducation_sdk.rb