Class: Shapes::Point
Instance Attribute Summary collapse
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
Attributes inherited from GeoObject
Instance Method Summary collapse
-
#initialize(lat = nil, long = nil, alt = nil, attributes = {}) ⇒ Point
constructor
A new instance of Point.
Constructor Details
#initialize(lat = nil, long = nil, alt = nil, attributes = {}) ⇒ Point
Returns a new instance of Point.
13 14 15 16 17 18 19 |
# File 'lib/shapes/geometry.rb', line 13 def initialize(lat = nil,long = nil,alt = nil,attributes = {}) super self.latitude = lat self.longitude = long self.altitude = alt self.attributes = attributes end |
Instance Attribute Details
#altitude ⇒ Object
Returns the value of attribute altitude.
11 12 13 |
# File 'lib/shapes/geometry.rb', line 11 def altitude @altitude end |
#latitude ⇒ Object
Returns the value of attribute latitude.
11 12 13 |
# File 'lib/shapes/geometry.rb', line 11 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
11 12 13 |
# File 'lib/shapes/geometry.rb', line 11 def longitude @longitude end |