Sha256: 75e3a242936735b22c0b99697108f0906cbcc55b0c465067439186e6465f2d9b

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 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 :SendInviteEmail
    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

3 entries across 3 versions & 1 rubygems

Version Path
roqua-core-api-0.2.1 lib/roqua/core_api.rb
roqua-core-api-0.2.0 lib/roqua/core_api.rb
roqua-core-api-0.1.1 lib/roqua/core_api.rb