Class: Spree::Events::Registry::Subscription

Inherits:
Data
  • Object
show all
Defined in:
lib/spree/events/registry.rb

Overview

Immutable subscription data using Ruby 3.2+ Data class

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



22
23
24
# File 'lib/spree/events/registry.rb', line 22

def options
  @options
end

#patternObject (readonly)

Returns the value of attribute pattern

Returns:

  • (Object)

    the current value of pattern



22
23
24
# File 'lib/spree/events/registry.rb', line 22

def pattern
  @pattern
end

#subscriberObject (readonly)

Returns the value of attribute subscriber

Returns:

  • (Object)

    the current value of subscriber



22
23
24
# File 'lib/spree/events/registry.rb', line 22

def subscriber
  @subscriber
end

Instance Method Details

#async?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/spree/events/registry.rb', line 23

def async?
  options.fetch(:async, true)
end