Sha256: ecd4e37603abc9b9eb4044b596e0a4dd2d2732dd9ebc1dd29db89a189ec8721d

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

require 'active_support/all'
require 'loquor'

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

RESOURCES = %w{
  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
  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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
meducation_sdk-1.1.2 lib/meducation_sdk.rb
meducation_sdk-1.1.1 lib/meducation_sdk.rb
meducation_sdk-1.1.0 lib/meducation_sdk.rb
meducation_sdk-1.0.0 lib/meducation_sdk.rb
meducation_sdk-0.10.1 lib/meducation_sdk.rb
meducation_sdk-0.10.0 lib/meducation_sdk.rb
meducation_sdk-0.9.0 lib/meducation_sdk.rb
meducation_sdk-0.7.0 lib/meducation_sdk.rb
meducation_sdk-0.6.1 lib/meducation_sdk.rb