Class: LatLongsToDistanceRequest
- Inherits:
-
Object
- Object
- LatLongsToDistanceRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
LatLongsToDistance
Instance Attribute Summary collapse
-
#lat1 ⇒ Object
Returns the value of attribute lat1.
-
#lat2 ⇒ Object
Returns the value of attribute lat2.
-
#lon1 ⇒ Object
Returns the value of attribute lon1.
-
#lon2 ⇒ Object
Returns the value of attribute lon2.
Instance Method Summary collapse
-
#initialize(lat1 = nil, lat2 = nil, lon1 = nil, lon2 = nil) ⇒ LatLongsToDistanceRequest
constructor
A new instance of LatLongsToDistanceRequest.
- #post ⇒ Object
Constructor Details
#initialize(lat1 = nil, lat2 = nil, lon1 = nil, lon2 = nil) ⇒ LatLongsToDistanceRequest
Returns a new instance of LatLongsToDistanceRequest.
1700 1701 1702 1703 1704 1705 |
# File 'lib/FlightXML2REST.rb', line 1700 def initialize(lat1 = nil, lat2 = nil, lon1 = nil, lon2 = nil) @lat1 = lat1 @lat2 = lat2 @lon1 = lon1 @lon2 = lon2 end |
Instance Attribute Details
#lat1 ⇒ Object
Returns the value of attribute lat1.
1699 1700 1701 |
# File 'lib/FlightXML2REST.rb', line 1699 def lat1 @lat1 end |
#lat2 ⇒ Object
Returns the value of attribute lat2.
1699 1700 1701 |
# File 'lib/FlightXML2REST.rb', line 1699 def lat2 @lat2 end |
#lon1 ⇒ Object
Returns the value of attribute lon1.
1699 1700 1701 |
# File 'lib/FlightXML2REST.rb', line 1699 def lon1 @lon1 end |
#lon2 ⇒ Object
Returns the value of attribute lon2.
1699 1700 1701 |
# File 'lib/FlightXML2REST.rb', line 1699 def lon2 @lon2 end |
Instance Method Details
#post ⇒ Object
1706 1707 1708 |
# File 'lib/FlightXML2REST.rb', line 1706 def post "lat1=#@lat1&lat2=#@lat2&lon1=#@lon1&lon2=#@lon2" end |