class IsoBibItem::DocumentIdentifier
Document identifier.
Attributes
id[R]
@return [String]
type[R]
@return [String]
Public Class Methods
new(id:, type:)
click to toggle source
# File lib/iso_bib_item/bibliographic_item.rb, line 31 def initialize(id:, type:) @id = id @type = type end
Public Instance Methods
to_xml(builder)
click to toggle source
Add docidentifier xml element
@param [Nokogiri::XML::Builder] builder
# File lib/iso_bib_item/bibliographic_item.rb, line 41 def to_xml(builder) builder.docidentifier(id, type: type) end