Class: LatLongsToHeadingRequest

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

Overview

LatLongsToHeading

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lat1Object

Returns the value of attribute lat1.



1727
1728
1729
# File 'lib/FlightXML2REST.rb', line 1727

def lat1
  @lat1
end

#lat2Object

Returns the value of attribute lat2.



1727
1728
1729
# File 'lib/FlightXML2REST.rb', line 1727

def lat2
  @lat2
end

#lon1Object

Returns the value of attribute lon1.



1727
1728
1729
# File 'lib/FlightXML2REST.rb', line 1727

def lon1
  @lon1
end

#lon2Object

Returns the value of attribute lon2.



1727
1728
1729
# File 'lib/FlightXML2REST.rb', line 1727

def lon2
  @lon2
end

Instance Method Details

#postObject



1734
1735
1736
# File 'lib/FlightXML2REST.rb', line 1734

def post
  "lat1=#@lat1&lat2=#@lat2&lon1=#@lon1&lon2=#@lon2"
end