Module: Rubydora
- Defined in:
- lib/rubydora.rb,
lib/rubydora/version.rb,
lib/rubydora/callbacks.rb,
lib/rubydora/datastream.rb,
lib/rubydora/repository.rb,
lib/rubydora/fc3_service.rb,
lib/rubydora/models_mixin.rb,
lib/rubydora/transactions.rb,
lib/rubydora/digital_object.rb,
lib/rubydora/profile_parser.rb,
lib/rubydora/resource_index.rb,
lib/rubydora/rest_api_client.rb,
lib/rubydora/fedora_url_helpers.rb,
lib/rubydora/array_with_callback.rb,
lib/rubydora/relationships_mixin.rb
Defined Under Namespace
Modules: AuditTrail, Callbacks, FedoraUrlHelpers, ModelsMixin, ProfileParser, RelationshipsMixin, ResourceIndex, RestApiClient, Transactions Classes: ArrayWithCallback, Datastream, DigitalObject, Fc3Service, FedoraInvalidRequest, RecordNotFound, Repository, RubydoraError, Transaction
Constant Summary collapse
- VERSION =
self.version
Class Method Summary collapse
-
.connect(*args) ⇒ Object
Connect to Fedora Repository.
-
.default_config ⇒ Object
Default repository connection information TODO: read ENV variables?.
-
.repository ⇒ Object
Connect to the default Fedora Repository.
-
.repository=(repository) ⇒ Object
Set the default Fedora Repository.
- .version ⇒ Object
Class Method Details
.connect(*args) ⇒ Object
Connect to Fedora Repository
35 36 37 |
# File 'lib/rubydora.rb', line 35 def connect(*args) Repository.new *args end |
.default_config ⇒ Object
Default repository connection information TODO: read ENV variables?
55 56 57 |
# File 'lib/rubydora.rb', line 55 def default_config {validateChecksum: false} end |
.repository ⇒ Object
Connect to the default Fedora Repository
41 42 43 |
# File 'lib/rubydora.rb', line 41 def repository @repository ||= connect(default_config) end |
.repository=(repository) ⇒ Object
Set the default Fedora Repository
48 49 50 |
# File 'lib/rubydora.rb', line 48 def repository=(repository) @repository = repository end |
.version ⇒ Object
4 5 6 |
# File 'lib/rubydora/version.rb', line 4 def self.version @version ||= File.read(File.join(File.dirname(__FILE__), '..', '..', 'VERSION')).chomp end |