class IsoBibItem::Contact

Contact class.

Attributes

type[R]

@return [String] allowed “phone”, “email” or “uri”

value[R]

@return [String]

Public Class Methods

new(type:, value:) click to toggle source

@param phone [String]

# File lib/iso_bib_item/contributor.rb, line 57
def initialize(type:, value:)
  @type  = type
  @value = value
end

Public Instance Methods

to_xml(doc) click to toggle source

@param builder [Nokogiri::XML::Document]

# File lib/iso_bib_item/contributor.rb, line 63
def to_xml(doc)
  doc.send type, value
end