Class: Geonames::BoundingBox

Inherits:
Object
  • Object
show all
Defined in:
lib/geonames/bounding_box.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(north = 0.0, south = 0.0, east = 0.0, west = 0.0) ⇒ BoundingBox

Returns a new instance of BoundingBox.



5
6
7
8
9
10
# File 'lib/geonames/bounding_box.rb', line 5

def initialize(north=0.0, south=0.0, east=0.0, west=0.0)
  self.north_point = north
  self.south_point = south
  self.east_point  = east
  self.west_point  = west
end

Instance Attribute Details

#east_pointObject

Returns the value of attribute east_point.



3
4
5
# File 'lib/geonames/bounding_box.rb', line 3

def east_point
  @east_point
end

#north_pointObject

Returns the value of attribute north_point.



3
4
5
# File 'lib/geonames/bounding_box.rb', line 3

def north_point
  @north_point
end

#south_pointObject

Returns the value of attribute south_point.



3
4
5
# File 'lib/geonames/bounding_box.rb', line 3

def south_point
  @south_point
end

#west_pointObject

Returns the value of attribute west_point.



3
4
5
# File 'lib/geonames/bounding_box.rb', line 3

def west_point
  @west_point
end