class SleeperRb::Resources::League::TransactionArray

Implements {SleeperRb::Utilities::ArrayProxy} and wraps Transaction objects.

Public Instance Methods

faab() click to toggle source

Returns transactions which are free agent acquisitions made with FAAB.

@return [SleeperRb::Resources::League::TransactionArray]

# File lib/sleeper_rb/resources/league/transaction_array.rb, line 29
def faab
  where(type: "free_agent", waiver_bid: { not: nil })
end
free_agent() click to toggle source

Returns transactions which are free agent acquisitions.

@return [SleeperRb::Resources::League::TransactionArray]

# File lib/sleeper_rb/resources/league/transaction_array.rb, line 21
def free_agent
  where(type: "free_agent")
end
trade() click to toggle source

Returns transactions which are trades.

@return [SleeperRb::Resources::League::TransactionArray]

# File lib/sleeper_rb/resources/league/transaction_array.rb, line 13
def trade
  where(type: "trade")
end
waiver() click to toggle source

Returns transactions which are free agent acquisitions made via the waiver wire.

@return [SleeperRb::Resources::League::TransactionArray]

# File lib/sleeper_rb/resources/league/transaction_array.rb, line 37
def waiver
  where(type: "free_agent", waiver_bid: nil)
end