Class: Ritsudo::Result::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ritsudo/result/base.rb

Direct Known Subclasses

Documents, Scripts, Xhrs

Instance Method Summary collapse

Constructor Details

#initializeBase

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

Raises:

  • (NotImplementedError)


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