module Transfermarkt
Constants
- USER_AGENT
- VERSION
Public Class Methods
base_uri()
click to toggle source
# File lib/transfermarkt.rb, line 16 def Transfermarkt.base_uri "http://transfermarkt.co.uk" end
test_fetch_club()
click to toggle source
# File lib/transfermarkt.rb, line 29 def self.test_fetch_club club_uri = "/en/maccabi-haifa/startseite/verein_1064.html" club = Transfermarkt::Club.fetch_by_club_uri(club_uri) end
test_fetch_league()
click to toggle source
# File lib/transfermarkt.rb, line 20 def self.test_fetch_league before = Time.now league_uri = "en/primera-division/startseite/wettbewerb_ES1.html" league = Transfermarkt::League.fetch_by_league_uri(league_uri) after = Time.now return {:before => before, :after => after, :league => league} end
test_fetch_player()
click to toggle source
# File lib/transfermarkt.rb, line 34 def self.test_fetch_player uri = "/en/lionel-messi/profil/spieler_28003.html" player = Transfermarkt::Player.fetch_by_profile_uri(uri) end
test_fetch_player_performance_data()
click to toggle source
# File lib/transfermarkt.rb, line 39 def self.test_fetch_player_performance_data uri = "/en/lionel-messi/leistungsdaten/spieler_28003_2012.html" data = Transfermarkt::Player.fetch_performance_data(uri) end