class Bodhi::Batch

Attributes

created[R]
failed[R]
records[RW]

Public Class Methods

new(records=[]) click to toggle source
# File lib/bodhi-slam/batches.rb, line 6
def initialize(records=[])
  @records = records
  @created = []
  @failed = []
end

Public Instance Methods

save!(context) click to toggle source

Saves the batch of records to the Bodhi cloud.

# File lib/bodhi-slam/batches.rb, line 13
def save!(context)
  raise NotImplementedError, "Subclasses must implement a save!(context) method."
end