class BatchAny::Service

Attributes

item_class[R]
items[R]

Public Class Methods

new(item) click to toggle source
# File lib/batch_any/service.rb, line 5
def initialize(item)
  @item_class = item.class
  @items = [item]
end

Public Instance Methods

can_serve?(item) click to toggle source
# File lib/batch_any/service.rb, line 10
def can_serve?(item)
  raise "Not implemented: #{self.class}#can_serve?(item) -> truthy, required by BatchAny::Service"
end
fetch() click to toggle source
# File lib/batch_any/service.rb, line 14
def fetch
  raise "Not implemented: #{self.class}#fetch, required by BatchAny::Service"
end