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
91
92
93
|
# File 'lib/relaton_bib/bib_item_locality.rb', line 91
def to_hash
{ "source_locality_stack" => single_element_array(locality) }
end
|
#to_xml(builder) ⇒ Object
84
85
86
87
88
|
# File 'lib/relaton_bib/bib_item_locality.rb', line 84
def to_xml(builder)
builder.sourceLocalityStack do |b|
locality.each { |l| l.to_xml(b) }
end
end
|