Method: Jats::Affiliation#to_hash

Defined in:
lib/jats/affiliation.rb

#to_hashObject



3
4
5
6
7
8
9
10
# File 'lib/jats/affiliation.rb', line 3

def to_hash
  {
    label:      xml.css('label').text,
    department: xml.css('institution').text.gsub(/^\W+|\W+$/, ''),
    address:    xml.css('addr-line').text,
    country:    xml.css('country').text
  }
end