Class: IsoBibItem::OrgIdentifier

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

Overview

Organization identifier.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, value) ⇒ OrgIdentifier

Returns a new instance of OrgIdentifier.

Parameters:

  • type (String)
  • value (String)


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

#typeString (readonly)

Returns:

  • (String)


14
15
16
# File 'lib/iso_bib_item/organization.rb', line 14

def type
  @type
end

#valueString (readonly)

Returns:

  • (String)


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