lib/sportradar/api/football/week.rb in sportradar-api-0.11.21 vs lib/sportradar/api/football/week.rb in sportradar-api-0.11.22
- old
+ new
@@ -23,11 +23,11 @@
# update stuff
@year = opts[:hierarchy].season_year if opts[:hierarchy]
@type = opts[:hierarchy].season if opts[:hierarchy]
@number = data['number'] || data['title'] || @number
- @sequence = data['sequence'] if data['sequence']
+ @sequence = data['sequence'] || @sequence || @number
create_data(@games_hash, data['games'], klass: game_class, week: self, api: api)
end
def games
@@ -41,15 +41,15 @@
__END__
-ncaafb = Sportradar::Api::Football::Ncaafb::Hierarchy.new
-ncaafb = Sportradar::Api::Football::Ncaafb::Hierarchy.new
+ncaafb = Sportradar::Api::Football::Ncaafb.new
+ncaafb = Sportradar::Api::Football::Ncaafb.new
res1 = ncaafb.get_schedule;
res2 = ncaafb.get_weekly_schedule;
-ncaafb = Sportradar::Api::Football::Ncaafb::Hierarchy.new
+ncaafb = Sportradar::Api::Football::Ncaafb.new
gg = ncaafb.games;
g = gg.first;
g.week
g.week_number
g.year