lib/sportradar/api/baseball/team.rb in sportradar-api-0.10.18 vs lib/sportradar/api/baseball/team.rb in sportradar-api-0.10.19
- old
+ new
@@ -42,10 +42,9 @@
# opts[:game].update_from_team(id, "starting_pitcher"=>{"last_name"=>"Cotton", "first_name"=>"Jharel", "preferred_name"=>"Jharel", "jersey_number"=>"45"})
# opts[:game].update_from_team(id, "current_pitcher"=>{"last_name"=>"Dull", "first_name"=>"Ryan", "preferred_name"=>"Ryan", "jersey_number"=>"66"})
# add_game(opts[:game])
# opts[:game].update_score(id => @runs) if @runs
opts[:game].update_stats(self, data['statistics']) if data['statistics']
- binding.pry
end
end
def handle_names(data)
# need to do some more work here
@name = data['name'] if data['name']