Class: LatLongsToDistanceRequest

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

Overview

LatLongsToDistance

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#lat1Object

Returns the value of attribute lat1.



1699
1700
1701
# File 'lib/FlightXML2REST.rb', line 1699

def lat1
  @lat1
end

#lat2Object

Returns the value of attribute lat2.



1699
1700
1701
# File 'lib/FlightXML2REST.rb', line 1699

def lat2
  @lat2
end

#lon1Object

Returns the value of attribute lon1.



1699
1700
1701
# File 'lib/FlightXML2REST.rb', line 1699

def lon1
  @lon1
end

#lon2Object

Returns the value of attribute lon2.



1699
1700
1701
# File 'lib/FlightXML2REST.rb', line 1699

def lon2
  @lon2
end

Instance Method Details

#postObject



1706
1707
1708
# File 'lib/FlightXML2REST.rb', line 1706

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