class InventoryFormatter

Public Class Methods

new(output) click to toggle source
# File lib/formatters/inventory_formatter.rb, line 6
def initialize(output)
  @output = output
end

Public Instance Methods

example_started(notification) click to toggle source
# File lib/formatters/inventory_formatter.rb, line 10
def example_started(notification)
  @output << "\n#{JSON.unparse(name: notification.example.location)}\n"
end