Class: RelatonBib::SourceLocalityStack
Constant Summary
Constants included
from RelatonBib
VERSION
Instance Attribute Summary
#locality
Instance Method Summary
collapse
#initialize
Methods included from RelatonBib
parse_date
Instance Method Details
103
104
105
|
# File 'lib/relaton_bib/bib_item_locality.rb', line 103
def to_hash
{ "source_locality_stack" => single_element_array(locality) }
end
|
#to_xml(builder) ⇒ Object
96
97
98
99
100
|
# File 'lib/relaton_bib/bib_item_locality.rb', line 96
def to_xml(builder)
builder.sourceLocalityStack do |b|
locality.each { |l| l.to_xml(b) }
end
end
|