Module: Sufia

Extended by:
ActiveSupport::Autoload
Defined in:
lib/sufia/noid.rb,
lib/sufia.rb,
lib/sufia/utils.rb,
lib/sufia/version.rb,
lib/sufia/id_service.rb,
lib/sufia/file_content.rb,
lib/sufia/generic_file.rb,
lib/sufia/queue/resque.rb,
lib/sufia/model_methods.rb,
lib/sufia/generic_file/audit.rb,
lib/sufia/generic_file/export.rb,
lib/sufia/file_content/versions.rb,
lib/sufia/generic_file/thumbnail.rb,
lib/sufia/solr_document_behavior.rb,
lib/sufia/generic_file/permissions.rb,
lib/sufia/files_controller_behavior.rb,
lib/sufia/downloads_controller_behavior.rb,
lib/sufia/file_content/extract_metadata.rb,
lib/sufia/generic_file/characterization.rb

Overview

Copyright © 2012 The Pennsylvania State University

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: Controller, DownloadsControllerBehavior, FileContent, FilesControllerBehavior, GenericFile, ModelMethods, Noid, Resque, SolrDocumentBehavior, User, Utils Classes: Engine, IdService, ResqueAdmin

Constant Summary collapse

VERSION =
"0.0.6"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#queueObject

Returns the value of attribute queue.



22
23
24
# File 'lib/sufia.rb', line 22

def queue
  @queue
end

Class Method Details

.config {|@@config| ... } ⇒ Object

Yields:



57
58
59
60
61
62
63
# File 'lib/sufia.rb', line 57

def self.config(&block)
  @@config ||= Sufia::Engine::Configuration.new

  yield @@config if block

  return @@config
end

.queueObject



65
66
67
# File 'lib/sufia.rb', line 65

def self.queue
  @queue ||= config.queue.new('sufia')
end