Class: Datacite::Mapping::Publisher
- Inherits:
-
Object
- Object
- Datacite::Mapping::Publisher
- Includes:
- XML::Mapping
- Defined in:
- lib/datacite/mapping/publisher.rb
Overview
The type of the resource
Instance Attribute Summary collapse
-
#language ⇒ String
An IETF BCP 47, ISO 639-1 language code identifying the language.
-
#value ⇒ String
The title itself.
Instance Method Summary collapse
-
#initialize(value:, language: nil) ⇒ Publisher
constructor
Initializes a new Publisher.
Constructor Details
#initialize(value:, language: nil) ⇒ Publisher
Initializes a new Datacite::Mapping::Publisher
15 16 17 18 |
# File 'lib/datacite/mapping/publisher.rb', line 15 def initialize(value:, language: nil) self.language = language self.value = value end |
Instance Attribute Details
#language ⇒ String
Returns an IETF BCP 47, ISO 639-1 language code identifying the language.
33 |
# File 'lib/datacite/mapping/publisher.rb', line 33 text_node :language, '@xml:lang', default_value: nil |
#value ⇒ String
Returns the title itself.
37 |
# File 'lib/datacite/mapping/publisher.rb', line 37 text_node :value, 'text()' |