module Sorare::Rewards

Rewards gem root

Constants

VERSION

Public Class Methods

configuration() click to toggle source
# File lib/sorare/rewards.rb, line 15
def configuration
  @configuration ||= Configuration.new
end
configure() { |configuration| ... } click to toggle source
# File lib/sorare/rewards.rb, line 19
def configure
  yield(configuration)
end
pick(salt:, hash: nil, data: nil) click to toggle source
# File lib/sorare/rewards.rb, line 24
def self.pick(salt:, hash: nil, data: nil)
  allocation_ctx = Sorare::Rewards::Build.call!(data: data || game_week_data(hash), salt: salt)
  Sorare::Rewards::Pick.call!(allocation_ctx.to_h).picks
end