Method: CrowdFlower::Order#debit
- Defined in:
- lib/crowdflower/order.rb
#debit(units_count = 1, channels = ["on_demand"]) ⇒ Object
defaults to on_demand; pass in diff channel name to launch job with that channel use job.enable_channels(“channel_name”) if you to keep on_demand and add another channel
17 18 19 |
# File 'lib/crowdflower/order.rb', line 17 def debit(units_count = 1, channels = ["on_demand"]) connection.post(resource_uri, {:body => {:debit => {:units_count => units_count}, :channels => channels}}) end |