Class: Cassieq::Client

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Statistics

#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.

Yields:

  • (_self)

Yield Parameters:



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

#accountObject

Returns the value of attribute account.



16
17
18
# File 'lib/cassieq/client.rb', line 16

def 
  @account
end

#hostObject

Returns the value of attribute host.



16
17
18
# File 'lib/cassieq/client.rb', line 16

def host
  @host
end

#keyObject

Returns the value of attribute key.



16
17
18
# File 'lib/cassieq/client.rb', line 16

def key
  @key
end

#portObject

Returns the value of attribute port.



16
17
18
# File 'lib/cassieq/client.rb', line 16

def port
  @port
end

#provided_paramsObject

Returns the value of attribute provided_params.



16
17
18
# File 'lib/cassieq/client.rb', line 16

def provided_params
  @provided_params
end