Class: Datacite::Mapping::AwardNumber
- Inherits:
-
Object
- Object
- Datacite::Mapping::AwardNumber
- Includes:
- XML::Mapping
- Defined in:
- lib/datacite/mapping/funding_reference.rb
Instance Attribute Summary collapse
-
#uri ⇒ URI?
The URI leading to a page provided by the funder for more information about the award.
-
#value ⇒ String
The award number.
Instance Method Summary collapse
-
#initialize(uri: nil, value:) ⇒ AwardNumber
constructor
A new instance of AwardNumber.
Constructor Details
#initialize(uri: nil, value:) ⇒ AwardNumber
Returns a new instance of AwardNumber.
52 53 54 55 |
# File 'lib/datacite/mapping/funding_reference.rb', line 52 def initialize(uri: nil, value:) self.uri = uri self.value = value end |
Instance Attribute Details
#uri ⇒ URI?
Returns The URI leading to a page provided by the funder for more information about the award.
64 |
# File 'lib/datacite/mapping/funding_reference.rb', line 64 uri_node :uri, '@awardURI', default_value: nil |
#value ⇒ String
Returns the award number. Cannot be nil.
68 |
# File 'lib/datacite/mapping/funding_reference.rb', line 68 text_node :value, 'text()' |