atpruby 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atpruby/match.rb +5 -0
- data/lib/atpruby/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 940f715e4df21068f09c9b8f15f388ddfd4edbef
|
4
|
+
data.tar.gz: e582802a3c090bad3667f4cf1f9d6cabfe5ea2ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56e2e4939aa9d4486d4a32b4ec8d7e14d01fdc584f5e6cb93831f4b5added322825296710ec1156d753c08e11a311393b97c64fd94fe17d81e6043f3c8227671
|
7
|
+
data.tar.gz: bce666dde46697f87db0961fe04895fcb042672fc182a6fe8d0375f458b13cc67cd18ffcea41005acd00e9b8b85f0b42e454a0578c9a2000be1976cec85487c7
|
data/lib/atpruby/match.rb
CHANGED
@@ -15,4 +15,9 @@ class Match < ActiveRecord::Base
|
|
15
15
|
def players
|
16
16
|
::Player.where(player_id:[winner_id,loser_id])
|
17
17
|
end
|
18
|
+
|
19
|
+
def self.select_compact
|
20
|
+
select(:id, :tourney_id, :tourney_name, :surface, :tourney_level, :round,
|
21
|
+
:minutes, :winner_id, :winner_name, :loser_id, :loser_name, :score)
|
22
|
+
end
|
18
23
|
end
|
data/lib/atpruby/version.rb
CHANGED