Class: ActiveMessaging::Adapters::Test::Subscription

Inherits:
Object
  • Object
show all
Defined in:
lib/activemessaging/adapters/test.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, headers) ⇒ Subscription

Returns a new instance of Subscription.



122
123
124
125
# File 'lib/activemessaging/adapters/test.rb', line 122

def initialize name, headers
  @name = name
  @headers = headers
end

Instance Attribute Details

#headersObject

Returns the value of attribute headers.



120
121
122
# File 'lib/activemessaging/adapters/test.rb', line 120

def headers
  @headers
end

#nameObject

Returns the value of attribute name.



120
121
122
# File 'lib/activemessaging/adapters/test.rb', line 120

def name
  @name
end

Instance Method Details

#to_sObject



127
128
129
# File 'lib/activemessaging/adapters/test.rb', line 127

def to_s
  "<Test::Subscription destination='#{name}' headers='#{headers.inspect}' >"
end