Class: GeoAPI::Neighborhood

Inherits:
GeoObject show all
Defined in:
lib/geoapi/neighborhood.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GeoObject

api_key_from_parameters, delete, find, get, post, search

Constructor Details

#initialize(attrs) ⇒ Neighborhood

Returns a new instance of Neighborhood.



10
11
12
13
14
# File 'lib/geoapi/neighborhood.rb', line 10

def initialize attrs
  super(attrs)
  self.properties = attrs['properties']
  
end

Instance Attribute Details

#propertiesObject

Returns the value of attribute properties.



4
5
6
# File 'lib/geoapi/neighborhood.rb', line 4

def properties
  @properties
end

Class Method Details

.entity_typeObject



6
7
8
# File 'lib/geoapi/neighborhood.rb', line 6

def self.entity_type
  "neighborhood"
end