Module: Datacite::Mapping
- Defined in:
- lib/datacite/mapping.rb,
lib/datacite/mapping/date.rb,
lib/datacite/mapping/title.rb,
lib/datacite/mapping/rights.rb,
lib/datacite/mapping/creator.rb,
lib/datacite/mapping/subject.rb,
lib/datacite/mapping/resource.rb,
lib/datacite/mapping/identifier.rb,
lib/datacite/mapping/contributor.rb,
lib/datacite/mapping/description.rb,
lib/datacite/mapping/module_info.rb,
lib/datacite/mapping/geo_location.rb,
lib/datacite/mapping/nonvalidating.rb,
lib/datacite/mapping/resource_type.rb,
lib/datacite/mapping/name_identifier.rb,
lib/datacite/mapping/geo_location_box.rb,
lib/datacite/mapping/geo_location_point.rb,
lib/datacite/mapping/related_identifier.rb,
lib/datacite/mapping/alternate_identifier.rb,
lib/datacite/mapping/nonvalidating/subject.rb,
lib/datacite/mapping/nonvalidating/identifier.rb
Overview
Maps DataCite XML to Ruby objects
Defined Under Namespace
Modules: Nonvalidating Classes: AlternateIdentifier, BreakPreservingValueNode, Contributor, ContributorType, Creator, Date, DateType, Description, DescriptionType, GeoLocation, GeoLocationBox, GeoLocationBoxNode, GeoLocationPoint, GeoLocationPointNode, Identifier, NameIdentifier, RelatedIdentifier, RelatedIdentifierType, RelationType, Resource, ResourceType, ResourceTypeGeneral, Rights, Subject, Title, TitleType
Constant Summary collapse
- DOI_PATTERN =
%r{10\..+/.+}- NAME =
The name of this gem
'datacite-mapping'- VERSION =
The version of this gem
'0.1.16'- COPYRIGHT =
The copyright notice for this gem
'Copyright (c) 2016 The Regents of the University of California'
Class Attribute Summary collapse
-
.log ⇒ Logger
Gets the logger for the module.
Class Method Summary collapse
-
.log_device=(value)
Sets the log device.
Class Attribute Details
.log ⇒ Logger
Gets the logger for the module. Default logger logs to $stdout.
16 17 18 19 |
# File 'lib/datacite/mapping.rb', line 16 def self.log self.log_device = $stdout unless @log @log end |
Class Method Details
.log_device=(value)
Sets the log device. Defaults to $stdout
23 24 25 |
# File 'lib/datacite/mapping.rb', line 23 def self.log_device=(value) @log = new_logger(logdev: value) end |