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.



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

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.



1731
1732
1733
# File 'lib/FlightXML2REST.rb', line 1731

def lat1
  @lat1
end

#lat2Object

Returns the value of attribute lat2.



1731
1732
1733
# File 'lib/FlightXML2REST.rb', line 1731

def lat2
  @lat2
end

#lon1Object

Returns the value of attribute lon1.



1731
1732
1733
# File 'lib/FlightXML2REST.rb', line 1731

def lon1
  @lon1
end

#lon2Object

Returns the value of attribute lon2.



1731
1732
1733
# File 'lib/FlightXML2REST.rb', line 1731

def lon2
  @lon2
end

Instance Method Details

#postObject



1738
1739
1740
# File 'lib/FlightXML2REST.rb', line 1738

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