Class: Burrow::Client
- Inherits:
-
Object
- Object
- Burrow::Client
- Defined in:
- lib/burrow/client.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(queue) ⇒ Client
constructor
A new instance of Client.
- #publish(method, params = {}) ⇒ Object
Constructor Details
#initialize(queue) ⇒ Client
Returns a new instance of Client.
5 6 7 |
# File 'lib/burrow/client.rb', line 5 def initialize(queue) @connection = Burrow::Connection.new(queue) end |
Instance Attribute Details
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
3 4 5 |
# File 'lib/burrow/client.rb', line 3 def connection @connection end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
3 4 5 |
# File 'lib/burrow/client.rb', line 3 def request @request end |