Class: Cloudenvoy::Subscription
- Inherits:
-
Object
- Object
- Cloudenvoy::Subscription
- Defined in:
- lib/cloudenvoy/subscription.rb
Overview
A wrapper class for pub/sub subscriptions. Used to wrap responses.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#original ⇒ Object
Returns the value of attribute original.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Subscription
constructor
Constructor.
Constructor Details
#initialize(**kwargs) ⇒ Subscription
Constructor
14 15 16 17 |
# File 'lib/cloudenvoy/subscription.rb', line 14 def initialize(**kwargs) @name = kwargs&.dig(:name) @original = kwargs&.dig(:original) end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/cloudenvoy/subscription.rb', line 7 def name @name end |
#original ⇒ Object
Returns the value of attribute original.
7 8 9 |
# File 'lib/cloudenvoy/subscription.rb', line 7 def original @original end |