class Football::Butler::Apifootball::Odds

Constants

PATH

Public Class Methods

by_match(id:, from:, to:, result:) click to toggle source
ODDS

from Start date (yyyy-mm-dd) to Stop date (yyyy-mm-dd)

action=get_odds&match_id={id}&from={from}&to={to}

# File lib/football/butler/apifootball/odds.rb, line 17
def by_match(id:, from:, to:, result:)
  filters = { match_id: id, from: from, to: to }
  Api.get(path: build_path(PATH), filters: filters, result: result)
end