Class: SolidusBolt::Handlers::BaseHandler

Inherits:
Object
  • Object
show all
Defined in:
app/webhooks/solidus_bolt/handlers/base_handler.rb

Direct Known Subclasses

CaptureHandler, CreditHandler, VoidHandler

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#paramsObject (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

#callObject

Raises:

  • (NotImplementedError)


16
17
18
# File 'app/webhooks/solidus_bolt/handlers/base_handler.rb', line 16

def call
  raise NotImplementedError, 'Missing #call method on class'
end