Class: Deltaconveyor::Option
- Inherits:
-
Object
- Object
- Deltaconveyor::Option
- Defined in:
- lib/deltaconveyor/option.rb
Constant Summary collapse
- DEFAULT_LOGGER =
Logger.new(STDOUT)
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#row_class ⇒ Object
Returns the value of attribute row_class.
Instance Method Summary collapse
-
#initialize(row_class: nil, key: nil, logger: nil) ⇒ Option
constructor
A new instance of Option.
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
#key ⇒ Object
Returns the value of attribute key.
7 8 9 |
# File 'lib/deltaconveyor/option.rb', line 7 def key @key end |
#logger ⇒ Object
Returns the value of attribute logger.
7 8 9 |
# File 'lib/deltaconveyor/option.rb', line 7 def logger @logger end |
#row_class ⇒ Object
Returns the value of attribute row_class.
7 8 9 |
# File 'lib/deltaconveyor/option.rb', line 7 def row_class @row_class end |