Class: Trellodon::Formatters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/trellodon/formatters/base.rb

Direct Known Subclasses

Markdown

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger: Config.logger) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/trellodon/formatters/base.rb', line 8

def initialize(logger: Config.logger)
  @logger = logger
end

Instance Attribute Details

#boardObject (readonly)

Returns the value of attribute board.



6
7
8
# File 'lib/trellodon/formatters/base.rb', line 6

def board
  @board
end

#loggerObject (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

Raises:

  • (NotImplementedError)


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

#finishObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/trellodon/formatters/base.rb', line 20

def finish
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end