Class: Relaton::Bib::Converter::BibXml::ToRfcxmlReferencegroup

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

Instance Method Summary collapse

Constructor Details

#initialize(item, include_keywords: true) ⇒ ToRfcxmlReferencegroup

Returns a new instance of ToRfcxmlReferencegroup.



6
7
8
9
# File 'lib/relaton/bib/converter/bibxml/to_rfcxml_referencegroup.rb', line 6

def initialize(item, include_keywords: true)
  @item = item
  @include_keywords = include_keywords
end

Instance Method Details

#transformObject



11
12
13
14
15
16
17
# File 'lib/relaton/bib/converter/bibxml/to_rfcxml_referencegroup.rb', line 11

def transform
  Rfcxml::V3::Referencegroup.new(
    anchor: create_anchor,
    target: create_target,
    reference: build_references,
  )
end