Class: IsoBibItem::PersonIdentifier

Inherits:
Object
  • Object
show all
Defined in:
lib/iso_bib_item/person.rb

Overview

Person identifier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value) ⇒ PersonIdentifier

Returns a new instance of PersonIdentifier.



72
73
74
75
# File 'lib/iso_bib_item/person.rb', line 72

def initialize(type, value)
  @type  = type
  @value = value
end

Instance Attribute Details

#typePersonIdentifierType



67
68
69
# File 'lib/iso_bib_item/person.rb', line 67

def type
  @type
end

#valueString

Returns:

  • (String)


70
71
72
# File 'lib/iso_bib_item/person.rb', line 70

def value
  @value
end

Instance Method Details

#to_xml(builder) ⇒ Object



77
78
79
# File 'lib/iso_bib_item/person.rb', line 77

def to_xml(builder)
  builder.identifier value, type: type
end