Skip to content
/ clemente Public

Ruby client for accessing MLBAM Pitch f/x and related data

License

Notifications You must be signed in to change notification settings

vfog/clemente

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clemente

Clemente is a Ruby client providing easy access to MLBAM Pitch F/X and related data. All XML data is converted to Ruby hashes for convenient access.

Usage

# today's scoreboard
scoreboard = Clemente.scoreboard
scoreboard[:date]

# scoreboard for August 18, 2013
Clemente.scoreboard Date.new(2013, 8, 18)

# today's mini scoreboard
mini_scoreboard = Clemente.mini_scoreboard
mini_scoreboard[:date]

# mini scoreboard for August 18, 2013
Clemente.mini_scoreboard Data.new(2013, 8, 18)

# boxscore for game id gid_2014_03_31_chnmlb_pitmlb_1 occuring today
boxscore = Clemente.boxscore "gid_2014_03_31_chnmlb_pitmlb_1"
boxscore[:game_id]

# boxscore for game id gid_2013_08_18_arimlb_pitmlb_1 occuring August 18, 2013
boxscore = Clemente.boxscore "gid_2013_08_18_arimlb_pitmlb_1", Date.new(2013, 8, 18)

Dependencies

Clemente depends upon the following libraries

Copyright

Copyright (c) 2013-2014 Richard McGuire. See LICENSE for details.

About

Ruby client for accessing MLBAM Pitch f/x and related data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages