Class: Pupa::Area
- Inherits:
-
Object
- Object
- Pupa::Area
- Includes:
- Concerns::Sourceable, Concerns::Timestamps, Model
- Defined in:
- lib/pupa/models/area.rb
Overview
A geographic area whose geometry may change over time.
Instance Attribute Summary collapse
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#geometry ⇒ Object
Returns the value of attribute geometry.
-
#identifier ⇒ Object
Returns the value of attribute identifier.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
Instance Method Summary collapse
-
#to_s ⇒ String
Returns the area's name.
Methods included from Concerns::Sourceable
#add_source, #initialize, #sources=
Methods included from Model
#==, #[], #[]=, #_id=, #add_extra, #extras=, #fingerprint, #foreign_properties, #initialize, #to_h, #validate!
Instance Attribute Details
#classification ⇒ Object
Returns the value of attribute classification.
11 12 13 |
# File 'lib/pupa/models/area.rb', line 11 def classification @classification end |
#geometry ⇒ Object
Returns the value of attribute geometry.
11 12 13 |
# File 'lib/pupa/models/area.rb', line 11 def geometry @geometry end |
#identifier ⇒ Object
Returns the value of attribute identifier.
11 12 13 |
# File 'lib/pupa/models/area.rb', line 11 def identifier @identifier end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/pupa/models/area.rb', line 11 def name @name end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
11 12 13 |
# File 'lib/pupa/models/area.rb', line 11 def parent_id @parent_id end |
Instance Method Details
#to_s ⇒ String
Returns the area's name.
19 20 21 |
# File 'lib/pupa/models/area.rb', line 19 def to_s name end |