Class: Datacite::Mapping::NameIdentifier
- Inherits:
-
Object
- Object
- Datacite::Mapping::NameIdentifier
- Includes:
- XML::Mapping
- Defined in:
- lib/datacite/mapping/name_identifier.rb
Overview
Uniquely identifies an individual or legal entity, according to various schemes.
Instance Attribute Summary collapse
-
#scheme ⇒ String
The name identifier scheme.
-
#scheme_uri ⇒ URI?
The URI of the identifier scheme.
-
#value ⇒ String
The identifier value.
Instance Method Summary collapse
-
#initialize(scheme:, value:, scheme_uri: nil) ⇒ NameIdentifier
constructor
Initializes a new NameIdentifier.
Constructor Details
#initialize(scheme:, value:, scheme_uri: nil) ⇒ NameIdentifier
Initializes a new Datacite::Mapping::NameIdentifier
15 16 17 18 19 |
# File 'lib/datacite/mapping/name_identifier.rb', line 15 def initialize(scheme:, value:, scheme_uri: nil) self.scheme = scheme self.scheme_uri = scheme_uri self.value = value end |
Instance Attribute Details
#scheme ⇒ String
Returns the name identifier scheme. Cannot be nil.
37 |
# File 'lib/datacite/mapping/name_identifier.rb', line 37 text_node :scheme, '@nameIdentifierScheme' |
#scheme_uri ⇒ URI?
Returns the URI of the identifier scheme. Optional.
41 |
# File 'lib/datacite/mapping/name_identifier.rb', line 41 uri_node :scheme_uri, '@schemeURI', default_value: nil |
#value ⇒ String
Returns the identifier value. Cannot be nil.
45 |
# File 'lib/datacite/mapping/name_identifier.rb', line 45 text_node :value, 'text()' |