Class: WhopSDK::Resources::Workforce

Inherits:
Object
  • Object
show all
Defined in:
lib/whop_sdk/resources/workforce.rb,
lib/whop_sdk/resources/workforce/bounties.rb,
sig/whop_sdk/resources/workforce.rbs,
sig/whop_sdk/resources/workforce/bounties.rbs

Defined Under Namespace

Classes: Bounties

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Workforce

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Workforce.

Parameters:



19
20
21
22
# File 'lib/whop_sdk/resources/workforce.rb', line 19

def initialize(client:)
  @client = client
  @bounties = WhopSDK::Resources::Workforce::Bounties.new(client: client)
end

Instance Attribute Details

#bountiesWhopSDK::Resources::Workforce::Bounties (readonly)

A Workforce Bounty is a paid task posted by an account or user. The reward is held in escrow when the bounty publishes, workers submit proof of completed work, and each accepted submission is paid out until every winner slot fills.

Use the Workforce Bounties API to list an account's bounties for reporting or dashboards, list the bounties a user can work or has participated in, and retrieve a single bounty by ID.



14
15
16
# File 'lib/whop_sdk/resources/workforce.rb', line 14

def bounties
  @bounties
end