def get_innings
      if @innings.length == 0
        inn_count = get_num_innings
        (1..get_num_innings).each do |inn|
          inning = Inning.new
          inning.load_from_id(@gid, inn)
          @innings << inning
        end
      end
      @innings
    end
def get_innings
      if @innings.length == 0
        inn_count = get_num_innings
        (1..get_num_innings).each do |inn|
          inning = Inning.new
          inning.load_from_id(@gid, inn)
          @innings << inning
        end
      end
      @innings
    end
def get_innings if @innings . length == 0 inn_count = get_num_innings ( 1 .. get_num_innings ) . each do | inn | inning = Inning . new inning . load_from_id ( @gid , inn ) @innings << inning end end @innings end
Returns an array of Inning objects that represent each inning of the game
Returns an array of Inning objects that represent each inning of the game