Class: LatLongsToHeadingRequest
- Inherits:
-
Object
- Object
- LatLongsToHeadingRequest
- Defined in:
- lib/FlightXML2REST.rb
Overview
LatLongsToHeading
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) ⇒ LatLongsToHeadingRequest
constructor
A new instance of LatLongsToHeadingRequest.
- #post ⇒ Object
Constructor Details
#initialize(lat1 = nil, lat2 = nil, lon1 = nil, lon2 = nil) ⇒ LatLongsToHeadingRequest
Returns a new instance of LatLongsToHeadingRequest.
1728 1729 1730 1731 1732 1733 |
# File 'lib/FlightXML2REST.rb', line 1728 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.
1727 1728 1729 |
# File 'lib/FlightXML2REST.rb', line 1727 def lat1 @lat1 end |
#lat2 ⇒ Object
Returns the value of attribute lat2.
1727 1728 1729 |
# File 'lib/FlightXML2REST.rb', line 1727 def lat2 @lat2 end |
#lon1 ⇒ Object
Returns the value of attribute lon1.
1727 1728 1729 |
# File 'lib/FlightXML2REST.rb', line 1727 def lon1 @lon1 end |
#lon2 ⇒ Object
Returns the value of attribute lon2.
1727 1728 1729 |
# File 'lib/FlightXML2REST.rb', line 1727 def lon2 @lon2 end |
Instance Method Details
#post ⇒ Object
1734 1735 1736 |
# File 'lib/FlightXML2REST.rb', line 1734 def post "lat1=#@lat1&lat2=#@lat2&lon1=#@lon1&lon2=#@lon2" end |