Class: Deltaconveyor::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/deltaconveyor/option.rb

Constant Summary collapse

DEFAULT_LOGGER =
Logger.new(STDOUT)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row_class: nil, key: nil, logger: nil) ⇒ Option



9
10
11
12
13
# File 'lib/deltaconveyor/option.rb', line 9

def initialize(row_class: nil, key: nil, logger: nil)
  self.row_class = row_class
  self.logger = logger || DEFAULT_LOGGER
  self.key = key || :id
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



7
8
9
# File 'lib/deltaconveyor/option.rb', line 7

def key
  @key
end

#loggerObject

Returns the value of attribute logger.



7
8
9
# File 'lib/deltaconveyor/option.rb', line 7

def logger
  @logger
end

#row_classObject

Returns the value of attribute row_class.



7
8
9
# File 'lib/deltaconveyor/option.rb', line 7

def row_class
  @row_class
end