lib/muxer/request.rb in muxer-0.3.0 vs lib/muxer/request.rb in muxer-0.3.2
- old
+ new
@@ -16,11 +16,14 @@
# @return [Symbol] HTTP method to use
# @!attribute completed
# @return [Boolean] Is the request completed
# @!attribute error
# @return [Boolean] Have we had an error?
+ # @!attribute id
+ # @return [Symbol] ID for this request, the ID is arbitrary and to
+ # be assigned by the user
class Request
- attr_accessor :url, :timeout, :headers, :params, :redirects
+ attr_accessor :url, :timeout, :headers, :params, :redirects, :id
attr_reader :method, :completed, :error
alias_method :completed?, :completed
def initialize
@method = :get
\ No newline at end of file