Class: AceMQ::AMQP::Health::Check

Inherits:
Struct
  • Object
show all
Defined in:
lib/acemq/amqp/health.rb

Overview

Adapts a connection to the +name+/+check+ pair aggregate wants.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#connection ⇒ Object

Returns the value of attribute connection

Returns:

  • (Object) —

    the current value of connection



198
199
200
# File 'lib/acemq/amqp/health.rb', line 198

def connection
  @connection
end

#name ⇒ Object

Returns the value of attribute name

Returns:

  • (Object) —

    the current value of name



198
199
200
# File 'lib/acemq/amqp/health.rb', line 198

def name
  @name
end

Instance Method Details

#check ⇒ Object



199
# File 'lib/acemq/amqp/health.rb', line 199

def check = Health.of(connection)