Class: Relaton::Bib::Converter::BibXml::FromRfcxmlReferencegroup

Inherits:
Object
  • Object
show all
Includes:
NamespaceHelper
Defined in:
lib/relaton/bib/converter/bibxml/from_rfcxml_referencegroup.rb

Instance Method Summary collapse

Methods included from NamespaceHelper

included

Constructor Details

#initialize(reference) ⇒ FromRfcxmlReferencegroup

Returns a new instance of FromRfcxmlReferencegroup.



8
9
10
# File 'lib/relaton/bib/converter/bibxml/from_rfcxml_referencegroup.rb', line 8

def initialize(reference)
  @reference = reference
end

Instance Method Details

#transformObject



12
13
14
15
16
17
18
19
20
# File 'lib/relaton/bib/converter/bibxml/from_rfcxml_referencegroup.rb', line 12

def transform
  namespace::ItemData.new(
    docnumber: @reference.anchor.sub(/^\w+\./, ""),
    type: "standard",
    docidentifier: docidentifiers,
    source: source,
    relation: relation,
  )
end