Class: OutsideIn::Category

Inherits:
Base
  • Object
show all
Defined in:
lib/outside_in/category.rb

Overview

Category model class. Each location has a category that describes its places in the location hierachy, e.g state, city, neighborhood, zip code, etc.

Categories have the following attributes:

  • display_name

  • name

Since:

  • 1.0

Instance Method Summary collapse

Methods inherited from Base

api_attr, api_attrs, #initialize

Constructor Details

This class inherits a constructor from OutsideIn::Base

Instance Method Details

#to_sString

Returns the category’s display name.

Returns:

  • (String)

Since:

  • 1.0



18
19
20
# File 'lib/outside_in/category.rb', line 18

def to_s
  display_name
end