Class: SolidusBolt::Sorter

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Sorter

Returns a new instance of Sorter.



11
12
13
# File 'app/webhooks/solidus_bolt/sorter.rb', line 11

def initialize(params)
  @params = params
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



5
6
7
# File 'app/webhooks/solidus_bolt/sorter.rb', line 5

def params
  @params
end

Class Method Details

.call(params) ⇒ Object



7
8
9
# File 'app/webhooks/solidus_bolt/sorter.rb', line 7

def self.call(params)
  new(params).call
end

Instance Method Details

#callObject



15
16
17
# File 'app/webhooks/solidus_bolt/sorter.rb', line 15

def call
  handler&.call(params)
end