Class: ActiveMessaging::Adapters::Test::Subscription
- Inherits:
-
Object
- Object
- ActiveMessaging::Adapters::Test::Subscription
- Defined in:
- lib/activemessaging/adapters/test.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, headers) ⇒ Subscription
constructor
A new instance of Subscription.
- #to_s ⇒ Object
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
#headers ⇒ Object
Returns the value of attribute headers.
120 121 122 |
# File 'lib/activemessaging/adapters/test.rb', line 120 def headers @headers end |
#name ⇒ Object
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_s ⇒ Object
127 128 129 |
# File 'lib/activemessaging/adapters/test.rb', line 127 def to_s "<Test::Subscription destination='#{name}' headers='#{headers.inspect}' >" end |