Class: Ritsudo::Result::Base
- Inherits:
-
Object
- Object
- Ritsudo::Result::Base
- Defined in:
- lib/ritsudo/result/base.rb
Instance Method Summary collapse
- #add(request) ⇒ Object
- #add_multiple(requests) ⇒ Object
-
#initialize ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/ritsudo/result/base.rb', line 4 def initialize @completed = Hash.new { |h,k| h[k] = [] } end |
Instance Method Details
#add(request) ⇒ Object
12 13 14 |
# File 'lib/ritsudo/result/base.rb', line 12 def add(request) raise NotImplementedError end |
#add_multiple(requests) ⇒ Object
8 9 10 |
# File 'lib/ritsudo/result/base.rb', line 8 def add_multiple(requests) requests.each { |request| add(request) } end |