Class: SolidusBolt::Sorter
- Inherits:
-
Object
- Object
- SolidusBolt::Sorter
- Defined in:
- app/webhooks/solidus_bolt/sorter.rb
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) ⇒ Sorter
constructor
A new instance of Sorter.
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
#params ⇒ Object (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
#call ⇒ Object
15 16 17 |
# File 'app/webhooks/solidus_bolt/sorter.rb', line 15 def call handler&.call(params) end |