Class: MingleEvents::Processors::HttpPostPublisher
- Defined in:
- lib/mingle_events/processors/http_post_publisher.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ HttpPostPublisher
constructor
A new instance of HttpPostPublisher.
- #process(event) ⇒ Object
Methods inherited from Processor
Constructor Details
#initialize(url) ⇒ HttpPostPublisher
Returns a new instance of HttpPostPublisher.
6 7 8 |
# File 'lib/mingle_events/processors/http_post_publisher.rb', line 6 def initialize(url) @url = url end |
Instance Method Details
#process(event) ⇒ Object
10 11 12 |
# File 'lib/mingle_events/processors/http_post_publisher.rb', line 10 def process(event) Net::HTTP.post_form(URI.parse(@url), {'event' => event.raw_xml}).body end |