class Shydra::Batch
Constants
- OVER_LIMIT_RESPONSE_CODE
Attributes
requests[RW]
Public Class Methods
new()
click to toggle source
# File lib/shydra/batch.rb, line 6 def initialize @requests = [] end
Public Instance Methods
finished?()
click to toggle source
# File lib/shydra/batch.rb, line 12 def finished? requests.all?{|r| !r.response.nil?} end
over_limit?()
click to toggle source
# File lib/shydra/batch.rb, line 16 def over_limit? requests.any? { |r| r.response && (r.response.code == OVER_LIMIT_RESPONSE_CODE) } end