Class: Stash::Merritt::SubmissionPackage::MerrittDataciteBuilder
- Inherits:
-
Repo::FileBuilder
- Object
- Repo::FileBuilder
- Stash::Merritt::SubmissionPackage::MerrittDataciteBuilder
- Defined in:
- lib/stash/merritt/submission_package/merritt_datacite_builder.rb
Instance Attribute Summary collapse
-
#factory ⇒ Object
readonly
Returns the value of attribute factory.
Instance Method Summary collapse
- #contents ⇒ Object
-
#initialize(factory) ⇒ MerrittDataciteBuilder
constructor
A new instance of MerrittDataciteBuilder.
Constructor Details
#initialize(factory) ⇒ MerrittDataciteBuilder
Returns a new instance of MerrittDataciteBuilder.
11 12 13 14 |
# File 'lib/stash/merritt/submission_package/merritt_datacite_builder.rb', line 11 def initialize(factory) super(file_name: 'mrt-datacite.xml') @factory = factory end |
Instance Attribute Details
#factory ⇒ Object (readonly)
Returns the value of attribute factory.
8 9 10 |
# File 'lib/stash/merritt/submission_package/merritt_datacite_builder.rb', line 8 def factory @factory end |
Instance Method Details
#contents ⇒ Object
16 17 18 |
# File 'lib/stash/merritt/submission_package/merritt_datacite_builder.rb', line 16 def contents factory.build_datacite_xml(datacite_3: true) end |