Sha256: 97557eae7a6f9afee400b92c232b03b3828d273bf58497d81286fbbc4cd47f41

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

require 'active_interaction'
require 'roqua/core_api/version'
require 'roqua/core_api/sessions'
require 'roqua/core_api/models'
require 'roqua/core_api/base'

module Roqua
  module CoreApi
    extend ActiveSupport::Autoload
    # Raised when a request failed due to an expired/non-existant session.
    class NoSession < StandardError; end
    class Unauthorized < StandardError; end

    autoload :CreateDossier
    autoload :CreateDossierGroup
    autoload :CreateDossierGroupExportSynchronously
    autoload :CreateProfessional
    autoload :CreateTokenSession
    autoload :DestroyTokenSession
    autoload :Dossiers
    autoload :DossierGroups
    autoload :DeleteDossierGroupRight
    autoload :ListDossierGroupRights
    autoload :People
    autoload :Person
    autoload :SendEmailTo
    autoload :SendTextMessageTo
    autoload :SendInviteEmail
    autoload :SsoLogin
    autoload :UpdatePerson
    autoload :UpdateDossier

    def self.load_fabricators
      gem_root = Gem::Specification.find_by_name("roqua-core-api").gem_dir
      Fabrication::Config.path_prefixes << gem_root unless Fabrication::Config.path_prefixes.include? gem_root
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
roqua-core-api-0.3.0 lib/roqua/core_api.rb
roqua-core-api-0.2.4 lib/roqua/core_api.rb