Class: Sorare::Rewards::Pick
- Inherits:
-
Object
- Object
- Sorare::Rewards::Pick
- Includes:
- Interactor
- Defined in:
- lib/sorare/rewards/interactors/pick.rb
Overview
Pick the rewards for a given game week Receive a Game Week reward supply data And a reward allocations
{
'global-all_star' => {
'D1' => {
'rare' => { 'tier_0' => 0, 'tier_1' => 1 }
}
}
}
Instance Method Summary collapse
-
#call ⇒ Object
Depending on the way the allocations interpreter is implemented it could be done by him or we update the allocations process to match the structure.
Instance Method Details
#call ⇒ Object
Depending on the way the allocations interpreter is implemented it could be done by him or we update the allocations process to match the structure
27 28 29 30 31 32 33 |
# File 'lib/sorare/rewards/interactors/pick.rb', line 27 def call context.cards_picked = Sorare::Rewards::Cards::PickForGameWeek.call!( **context.to_h, salt: salt, allocations: Sorare::Rewards::GameWeekAllocations.new(card_allocations) ).cards_picked end |