Class: FlakerAdapter

Inherits:
BaseAdapter show all
Defined in:
lib/adapters/flaker.rb

Constant Summary collapse

URL =
"http://api.flaker.pl/api/type:submit"

Instance Attribute Summary

Attributes inherited from BaseAdapter

#headers

Instance Method Summary collapse

Methods inherited from BaseAdapter

#add_headers, #add_tags, #default_headers_map, #initialize, #process_deliver

Constructor Details

This class inherits a constructor from BaseAdapter

Instance Method Details

#deliver(message, tags = []) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/adapters/flaker.rb', line 4

def deliver(message, tags = [])

  message = add_tags(message, tags)

  process_deliver(URL, {"text" => message}, "&" )

end