Class: Unisms::Adapter::Stdout

Inherits:
Base
  • Object
show all
Defined in:
lib/unisms/adapter/stdout.rb

Instance Method Summary collapse

Instance Method Details

#deliver(message, to: nil, from: nil) ⇒ Object



5
6
7
8
# File 'lib/unisms/adapter/stdout.rb', line 5

def deliver(message, to: nil, from: nil)
	puts ["Sending message '#{message}'", to && " to '#{to}'", from && " from '#{from}'", "."].compact.join
	true
end