Class: Spree::Events::Registry::Subscription
- Inherits:
-
Data
- Object
- Data
- Spree::Events::Registry::Subscription
- Defined in:
- lib/spree/events/registry.rb
Overview
Immutable subscription data using Ruby 3.2+ Data class
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
-
#subscriber ⇒ Object
readonly
Returns the value of attribute subscriber.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options
22 23 24 |
# File 'lib/spree/events/registry.rb', line 22 def end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern
22 23 24 |
# File 'lib/spree/events/registry.rb', line 22 def pattern @pattern end |
#subscriber ⇒ Object (readonly)
Returns the value of attribute subscriber
22 23 24 |
# File 'lib/spree/events/registry.rb', line 22 def subscriber @subscriber end |
Instance Method Details
#async? ⇒ Boolean
23 24 25 |
# File 'lib/spree/events/registry.rb', line 23 def async? .fetch(:async, true) end |