Method: Crags::Country#locations

Defined in:
lib/crags/country.rb

#locationsObject



34
35
36
37
38
39
40
41
42
43
# File 'lib/crags/country.rb', line 34

def locations
  if links.empty?
    str = request.last_effective_url
    [Location.new(str.strip_http)]
  else
    links.collect do |link|
      Location.new(link["href"].strip_http)
    end
  end
end