Class: Pupa::Area

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#classificationObject

Returns the value of attribute classification.



11
12
13
# File 'lib/pupa/models/area.rb', line 11

def classification
  @classification
end

#geometryObject

Returns the value of attribute geometry.



11
12
13
# File 'lib/pupa/models/area.rb', line 11

def geometry
  @geometry
end

#identifierObject

Returns the value of attribute identifier.



11
12
13
# File 'lib/pupa/models/area.rb', line 11

def identifier
  @identifier
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/pupa/models/area.rb', line 11

def name
  @name
end

#parent_idObject

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_sString

Returns the area's name.

Returns:

  • (String)

    the area's name



19
20
21
# File 'lib/pupa/models/area.rb', line 19

def to_s
  name
end