Class: IsoBibItem::PersonIdentifier
- Inherits:
-
Object
- Object
- IsoBibItem::PersonIdentifier
- Defined in:
- lib/iso_bib_item/person.rb
Overview
Person identifier.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(type, value) ⇒ PersonIdentifier
constructor
A new instance of PersonIdentifier.
- #to_xml(builder) ⇒ Object
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
#type ⇒ PersonIdentifierType
67 68 69 |
# File 'lib/iso_bib_item/person.rb', line 67 def type @type end |
#value ⇒ 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 |