Module: DK::TQueue
- Included in:
- Client
- Defined in:
- lib/draftking/queue.rb
Overview
—————————– Queue Methods —————————– #
Instance Method Summary collapse
-
#move_to_drafts(options) ⇒ Int
Move from Queue to Drafts.
Instance Method Details
#move_to_drafts(options) ⇒ Int
Move from Queue to Drafts
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/draftking/queue.rb', line 7 def move_to_drafts() [:message] = 'Moving Queue ~> Drafts: ' [:shuffle] = false [:state] = DK::DRAFT [:source] ||= DK::QUEUE post_operation() do |post, _| post.changed = !post.has_key_text?(@key_text) post.change_state(@state) if post.changed end end |