lib/papercall/rest_fetcher.rb in papercall-0.10.0 vs lib/papercall/rest_fetcher.rb in papercall-0.11.0

- old
+ new

@@ -27,9 +27,10 @@ headers: @auth_hash) # :timeout => 120 JSON.parse raw_results end def fetch(*states) + states = [[:submitted, :accepted, :rejected, :waitlist, :declined]] if states == [[:all]] states.flatten.each do |state| if state puts "Fetching #{state} submissions from PaperCall API..." instance_variable_set("@#{state}", papercall(submission_url(state.to_s))) end