flightstats-flex 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +7 -1
- data/lib/flightstats/airport_resources.rb +1 -0
- data/lib/flightstats/flight.rb +16 -16
- data/lib/flightstats/flight_durations.rb +4 -1
- data/lib/flightstats/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -7,6 +7,12 @@ Ruby client for the FlightStats Flex API.
|
|
7
7
|
|
8
8
|
In your Gemfile:
|
9
9
|
|
10
|
+
```ruby
|
11
|
+
gem "flightstats-flex", "~> 0.2.0"
|
12
|
+
```
|
13
|
+
|
14
|
+
or
|
15
|
+
|
10
16
|
```ruby
|
11
17
|
gem 'flightstats-flex', :git => 'https://github.com/diditclear/flightstats-client-ruby'
|
12
18
|
```
|
@@ -249,4 +255,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
249
255
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
250
256
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
251
257
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
252
|
-
SOFTWARE.
|
258
|
+
SOFTWARE.
|
data/lib/flightstats/flight.rb
CHANGED
@@ -17,36 +17,36 @@ module FlightStats
|
|
17
17
|
:flight_legs
|
18
18
|
|
19
19
|
class << self
|
20
|
-
def direct_arriving_at(arrival_code, year, month, day, options = {})
|
21
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}",
|
20
|
+
def direct_arriving_at(arrival_code, year, month, day, params = {}, options = {})
|
21
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}", params, options), 'flights'
|
22
22
|
end
|
23
23
|
|
24
|
-
def direct_departing_from(departure_code, year, month, day, options = {})
|
25
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/from/#{departure_code}/departing/#{year}/#{month}/#{day}",
|
24
|
+
def direct_departing_from(departure_code, year, month, day, params = {}, options = {})
|
25
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/from/#{departure_code}/departing/#{year}/#{month}/#{day}", params, options), 'flights'
|
26
26
|
end
|
27
27
|
|
28
|
-
def direct_arriving_by_flight_number(carrier, flight_number, year, month, day, options = {})
|
29
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/arriving/#{year}/#{month}/#{day}",
|
28
|
+
def direct_arriving_by_flight_number(carrier, flight_number, year, month, day, params = {}, options = {})
|
29
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/arriving/#{year}/#{month}/#{day}", params, options), 'flights'
|
30
30
|
end
|
31
31
|
|
32
|
-
def direct_arriving_by_flight_number_and_location(carrier, flight_number, arrival_code, year, month, day, options = {})
|
33
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}",
|
32
|
+
def direct_arriving_by_flight_number_and_location(carrier, flight_number, arrival_code, year, month, day, params = {}, options = {})
|
33
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}", params, options), 'flights'
|
34
34
|
end
|
35
35
|
|
36
|
-
def direct_departing_by_flight_number(carrier, flight_number, year, month, day, options = {})
|
37
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/departing/#{year}/#{month}/#{day}",
|
36
|
+
def direct_departing_by_flight_number(carrier, flight_number, year, month, day, params = {}, options = {})
|
37
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/departing/#{year}/#{month}/#{day}", params, options), 'flights'
|
38
38
|
end
|
39
39
|
|
40
|
-
def direct_departing_by_flight_number_and_location(carrier, flight_number, arrival_code, year, month, day, options = {})
|
41
|
-
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/to/#{arrival_code}/departing/#{year}/#{month}/#{day}",
|
40
|
+
def direct_departing_by_flight_number_and_location(carrier, flight_number, arrival_code, year, month, day, params = {}, options = {})
|
41
|
+
from_response API.get("/flex/connections/rest/v1/json/direct/flight/#{carrier}/#{flight_number}/to/#{arrival_code}/departing/#{year}/#{month}/#{day}", params, options), 'flights'
|
42
42
|
end
|
43
43
|
|
44
|
-
def direct_and_connecting_arriving(departure_code, arrival_code, year, month, day, options = {})
|
45
|
-
from_response API.get("/flex/connections/rest/v1/json/connecting/from/#{departure_code}/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}",
|
44
|
+
def direct_and_connecting_arriving(departure_code, arrival_code, year, month, day, params = {}, options = {})
|
45
|
+
from_response API.get("/flex/connections/rest/v1/json/connecting/from/#{departure_code}/to/#{arrival_code}/arriving/#{year}/#{month}/#{day}", params, options), 'flights'
|
46
46
|
end
|
47
47
|
|
48
|
-
def direct_and_connecting_departing(departure_code, arrival_code, year, month, day, options = {})
|
49
|
-
from_response API.get("/flex/connections/rest/v1/json/connecting/from/#{departure_code}/to/#{arrival_code}/departing/#{year}/#{month}/#{day}",
|
48
|
+
def direct_and_connecting_departing(departure_code, arrival_code, year, month, day, params = {}, options = {})
|
49
|
+
from_response API.get("/flex/connections/rest/v1/json/connecting/from/#{departure_code}/to/#{arrival_code}/departing/#{year}/#{month}/#{day}", params, options), 'flights'
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
@@ -3,7 +3,10 @@ module FlightStats
|
|
3
3
|
attr_accessor :scheduled_block_minutes,
|
4
4
|
:scheduled_air_minutes,
|
5
5
|
:scheduled_taxi_out_minutes,
|
6
|
+
:scheduled_taxi_in_minutes,
|
7
|
+
:block_minutes,
|
8
|
+
:air_minutes,
|
6
9
|
:taxi_out_minutes,
|
7
|
-
:
|
10
|
+
:taxi_in_minutes
|
8
11
|
end
|
9
12
|
end
|
data/lib/flightstats/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flightstats-flex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -122,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
122
122
|
version: '0'
|
123
123
|
segments:
|
124
124
|
- 0
|
125
|
-
hash: -
|
125
|
+
hash: -169552129748110628
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
none: false
|
128
128
|
requirements:
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
version: '0'
|
132
132
|
segments:
|
133
133
|
- 0
|
134
|
-
hash: -
|
134
|
+
hash: -169552129748110628
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
137
|
rubygems_version: 1.8.24
|