Class: Tagcrumbs::Country

Inherits:
Place
  • Object
show all
Defined in:
lib/tagcrumbs/resources/models/country.rb

Overview

A Country is a Place and has a name. It contains many states and the states contain many cities. You can filter Tagcrumbs by country. You can find out more information about the country by querying the geonames webservice.

Class Method Summary collapse

Class Method Details

.search(q, args = {}) ⇒ Object

Search a country by a string



10
11
12
# File 'lib/tagcrumbs/resources/models/country.rb', line 10

def self.search(q, args={})
  super(q, args.merge(:for => :country))
end