Class: GeoAPI::Neighborhood
- Defined in:
- lib/geoapi/neighborhood.rb
Instance Attribute Summary collapse
-
#properties ⇒ Object
Returns the value of attribute properties.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Neighborhood
constructor
A new instance of Neighborhood.
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
#properties ⇒ Object
Returns the value of attribute properties.
4 5 6 |
# File 'lib/geoapi/neighborhood.rb', line 4 def properties @properties end |
Class Method Details
.entity_type ⇒ Object
6 7 8 |
# File 'lib/geoapi/neighborhood.rb', line 6 def self.entity_type "neighborhood" end |