Class: WhopSDK::Resources::Workforce
- Inherits:
-
Object
- Object
- WhopSDK::Resources::Workforce
- 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
-
#bounties ⇒ WhopSDK::Resources::Workforce::Bounties
readonly
A Workforce Bounty is a paid task posted by an account or user.
Instance Method Summary collapse
-
#initialize(client:) ⇒ Workforce
constructor
private
A new instance of Workforce.
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.
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
#bounties ⇒ WhopSDK::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 |