lib/quiniela/parsers/results.rb
# It returns the results for the given round number (integer)
# The format of the results will be:
#
# [HomeTeam, AwayTeam, HomeResult, AwayResult]
#
# If the match has not been played yet, it will return nil as
# home and away result
It returns the results for the given round number (integer)
The format of the results will be.



If the match has not been played yet, it will return nil as
home and away result
It returns the results for the given round number ( integer ) The format of the results will be . If the match has not been played yet it will return nil as home and away result
def round(number)
        given_round = rounds.find { |round| round[:jornada].to_i == number }
        raise NotFound unless given_round
        given_round[:partidos].map(&method(:build_match))
      end
def round ( number ) given_round = rounds . find { | round | round [ :jornada ] . to_i == number } raise NotFound unless given_round given_round [ :partidos ] . map ( & method ( :build_match ) ) end
It returns the results for the given round number (integer)
The format of the results will be:
It returns the results for the given round number ( integer ) The format of the results will be :
number
<not_specific>