class MingleEvents::Processors::HttpPostPublisher
Public Class Methods
new(url)
click to toggle source
# File lib/mingle_events/processors/http_post_publisher.rb 6 def initialize(url) 7 @url = url 8 end
Public Instance Methods
process(event)
click to toggle source
# File lib/mingle_events/processors/http_post_publisher.rb 10 def process(event) 11 Net::HTTP.post_form(URI.parse(@url), {'event' => event.raw_xml}).body 12 end