class Rseed::Adapter

Attributes

converter[RW]
error[R]
logger[W]
options[W]

Public Instance Methods

converter_attributes() click to toggle source
# File lib/rseed/adapter.rb, line 16
def converter_attributes
  return [] unless converter
  converter.class.converter_attributes
end
logger() click to toggle source
# File lib/rseed/adapter.rb, line 8
def logger
  @logger.nil? ? Rseed.logger : @logger
end
mandatory_attributes() click to toggle source
# File lib/rseed/adapter.rb, line 21
def mandatory_attributes
  return [] unless converter
  converter.class.mandatory_attributes
end
options() click to toggle source
# File lib/rseed/adapter.rb, line 12
def options
  @options.nil? ? {} : @options
end
preprocess() click to toggle source

Dummy process that should be overwritten by other adapters

# File lib/rseed/adapter.rb, line 27
def preprocess
  return true
end
process() { |values, meta| ... } click to toggle source
# File lib/rseed/adapter.rb, line 31
def process &block
  values = {}
  meta = {}
  yield values, meta
end