You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I thought it might be useful to add an example of how to use workable collections.
Basically just:
client = Workable::Client.new(api_key: 'api_key', subdomain: 'your_subdomain')
jobs = client.jobs
loop do
jobs.each do |job|
# Do something with the job
end
break unless jobs.next_page?
jobs = jobs.fetch_next_page
end
Hi, sorry for slight delay, was pretty occupied lately; and sure - feel free to add this info, I think readme should be just fine (somewhere under usage) - as it's loaded by yard anyway. Thanks!
j-dexx
added a commit
to j-dexx/workable
that referenced
this issue
Nov 27, 2015
Hi, I thought it might be useful to add an example of how to use workable collections.
Basically just:
Using loop because it's matz's preference
Would you like me to add it? If so where would you like it? Using yard in the workable collection class? Or in the readme?
The text was updated successfully, but these errors were encountered: