Class: Cassieq::Client
- Inherits:
-
Object
- Object
- Cassieq::Client
- Includes:
- Messages, Queues, Statistics
- Defined in:
- lib/cassieq/client.rb,
lib/cassieq/client/queues.rb,
lib/cassieq/client/messages.rb,
lib/cassieq/client/statistics.rb
Defined Under Namespace
Modules: Messages, Queues, Statistics
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#host ⇒ Object
Returns the value of attribute host.
-
#key ⇒ Object
Returns the value of attribute key.
-
#port ⇒ Object
Returns the value of attribute port.
-
#provided_params ⇒ Object
Returns the value of attribute provided_params.
Instance Method Summary collapse
-
#initialize(params = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Statistics
Methods included from Messages
#ack_message, #edit_message, #next_message, #publish_message
Methods included from Queues
#create_queue, #delete_queue, #queue, #queues
Constructor Details
#initialize(params = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
18 19 20 21 22 23 24 25 |
# File 'lib/cassieq/client.rb', line 18 def initialize(params = {}) @host = params[:host] @key = params[:key] @provided_params = params[:provided_params] @account = params[:account] @port = params.fetch(:port, 8080) yield(self) if block_given? end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
16 17 18 |
# File 'lib/cassieq/client.rb', line 16 def account @account end |
#host ⇒ Object
Returns the value of attribute host.
16 17 18 |
# File 'lib/cassieq/client.rb', line 16 def host @host end |
#key ⇒ Object
Returns the value of attribute key.
16 17 18 |
# File 'lib/cassieq/client.rb', line 16 def key @key end |
#port ⇒ Object
Returns the value of attribute port.
16 17 18 |
# File 'lib/cassieq/client.rb', line 16 def port @port end |
#provided_params ⇒ Object
Returns the value of attribute provided_params.
16 17 18 |
# File 'lib/cassieq/client.rb', line 16 def provided_params @provided_params end |