Class: IsoBibItem::OrgIdentifier
- Inherits:
-
Object
- Object
- IsoBibItem::OrgIdentifier
- Defined in:
- lib/iso_bib_item/organization.rb
Overview
Organization identifier.
Instance Attribute Summary collapse
- #type ⇒ String readonly
- #value ⇒ String readonly
Instance Method Summary collapse
-
#initialize(type, value) ⇒ OrgIdentifier
constructor
A new instance of OrgIdentifier.
- #to_xml(builder) ⇒ Object
Constructor Details
#initialize(type, value) ⇒ OrgIdentifier
Returns a new instance of OrgIdentifier.
21 22 23 24 |
# File 'lib/iso_bib_item/organization.rb', line 21 def initialize(type, value) @type = type @value = value end |
Instance Attribute Details
#type ⇒ String (readonly)
14 15 16 |
# File 'lib/iso_bib_item/organization.rb', line 14 def type @type end |
#value ⇒ String (readonly)
17 18 19 |
# File 'lib/iso_bib_item/organization.rb', line 17 def value @value end |
Instance Method Details
#to_xml(builder) ⇒ Object
26 27 28 |
# File 'lib/iso_bib_item/organization.rb', line 26 def to_xml(builder) builder.identifier(value, type: type) end |