Class: Trellodon::Formatters::Base
- Inherits:
-
Object
- Object
- Trellodon::Formatters::Base
- Defined in:
- lib/trellodon/formatters/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#board ⇒ Object
readonly
Returns the value of attribute board.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #board_added(board) ⇒ Object
- #card_added(card) ⇒ Object
- #finish ⇒ Object
-
#initialize(logger: Config.logger) ⇒ Base
constructor
A new instance of Base.
Constructor Details
Instance Attribute Details
#board ⇒ Object (readonly)
Returns the value of attribute board.
6 7 8 |
# File 'lib/trellodon/formatters/base.rb', line 6 def board @board end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
6 7 8 |
# File 'lib/trellodon/formatters/base.rb', line 6 def logger @logger end |
Instance Method Details
#board_added(board) ⇒ Object
12 13 14 |
# File 'lib/trellodon/formatters/base.rb', line 12 def board_added(board) @board = board end |
#card_added(card) ⇒ Object
16 17 18 |
# File 'lib/trellodon/formatters/base.rb', line 16 def card_added(card) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end |
#finish ⇒ Object
20 21 22 |
# File 'lib/trellodon/formatters/base.rb', line 20 def finish raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end |