Class: Firehose::HttpPublisher
- Inherits:
-
Object
- Object
- Firehose::HttpPublisher
- Defined in:
- lib/firehose/http_publisher.rb
Defined Under Namespace
Classes: RequestBuilder
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri) ⇒ HttpPublisher
constructor
A new instance of HttpPublisher.
- #publish(message) ⇒ Object
Constructor Details
#initialize(uri) ⇒ HttpPublisher
Returns a new instance of HttpPublisher.
24 25 26 |
# File 'lib/firehose/http_publisher.rb', line 24 def initialize(uri) @uri = URI.parse(uri) end |
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/firehose/http_publisher.rb', line 6 def uri @uri end |
Instance Method Details
#publish(message) ⇒ Object
28 29 30 |
# File 'lib/firehose/http_publisher.rb', line 28 def publish() RequestBuilder.new(uri, ) end |