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
10 11 12 |
# File 'lib/protobuf/nats/client.rb', line 10 def inbox @inbox end |
#subscription ⇒ Object
Returns the value of attribute subscription
10 11 12 |
# File 'lib/protobuf/nats/client.rb', line 10 def subscription @subscription end |
Instance Method Details
#swap(sub_inbox) ⇒ Object
11 12 13 14 |
# File 'lib/protobuf/nats/client.rb', line 11 def swap(sub_inbox) self.subscription = sub_inbox.subscription self.inbox = sub_inbox.inbox end |