Class: Pubid::Doi::Builder
- Inherits:
-
Object
- Object
- Pubid::Doi::Builder
- Defined in:
- lib/pubid/doi/builder.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build(parsed_data) ⇒ Object
6 7 8 |
# File 'lib/pubid/doi/builder.rb', line 6 def self.build(parsed_data) new.build(parsed_data) end |
Instance Method Details
#build(data) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/pubid/doi/builder.rb', line 10 def build(data) Identifiers::Resource.new( prefix: "10.#{data[:prefix]}", suffix: data[:suffix].to_s, ) end |