lib/iso_bib_item/organization.rb in iso-bib-item-0.4.3 vs lib/iso_bib_item/organization.rb in iso-bib-item-0.4.4
- old
+ new
@@ -45,14 +45,14 @@
# @param name [String]
# @param abbreviation [String]
# @param url [String]
# @TODO identifier
- def initialize(name:, abbreviation: nil, url: nil)
+ def initialize(name:, abbreviation: nil, url: nil, identifiers: [])
super(url: url)
@name = name.is_a?(Array) ? name.map { |n| hash2locstr(n) } : [hash2locstr(name)]
@abbreviation = LocalizedString.new abbreviation
- @identifiers = []
+ @identifiers = identifiers
end
# @param builder [Nokogiri::XML::Builder]
def to_xml(builder)
builder.organization do