Class: Protobuf::Nats::Client::SubscriptionInbox
- Inherits:
-
Struct
- Object
- Struct
- Protobuf::Nats::Client::SubscriptionInbox
- Defined in:
- lib/protobuf/nats/client.rb
Overview
Structure to hold subscription and inbox to use within pool
Instance Attribute Summary collapse
-
#inbox ⇒ Object
Returns the value of attribute inbox.
-
#subscription ⇒ Object
Returns the value of attribute subscription.
Instance Method Summary collapse
Instance Attribute Details
#inbox ⇒ Object
Returns the value of attribute inbox
20 21 22 |
# File 'lib/protobuf/nats/client.rb', line 20 def inbox @inbox end |
#subscription ⇒ Object
Returns the value of attribute subscription
20 21 22 |
# File 'lib/protobuf/nats/client.rb', line 20 def subscription @subscription end |
Instance Method Details
#swap(sub_inbox) ⇒ Object
21 22 23 24 |
# File 'lib/protobuf/nats/client.rb', line 21 def swap(sub_inbox) self.subscription = sub_inbox.subscription self.inbox = sub_inbox.inbox end |