Class: SolidusBolt::Handlers::BaseHandler
- Inherits:
-
Object
- Object
- SolidusBolt::Handlers::BaseHandler
- Defined in:
- app/webhooks/solidus_bolt/handlers/base_handler.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(params) ⇒ BaseHandler
constructor
A new instance of BaseHandler.
Constructor Details
#initialize(params) ⇒ BaseHandler
Returns a new instance of BaseHandler.
8 9 10 |
# File 'app/webhooks/solidus_bolt/handlers/base_handler.rb', line 8 def initialize(params) @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'app/webhooks/solidus_bolt/handlers/base_handler.rb', line 6 def params @params end |
Class Method Details
.call(params) ⇒ Object
12 13 14 |
# File 'app/webhooks/solidus_bolt/handlers/base_handler.rb', line 12 def self.call(params) new(params).call end |
Instance Method Details
#call ⇒ Object
16 17 18 |
# File 'app/webhooks/solidus_bolt/handlers/base_handler.rb', line 16 def call raise NotImplementedError, 'Missing #call method on class' end |