Class: SolidusBolt::Webhooks::CreateService
- Inherits:
-
BaseService
- Object
- BaseService
- SolidusBolt::Webhooks::CreateService
- Defined in:
- app/services/solidus_bolt/webhooks/create_service.rb
Instance Attribute Summary collapse
-
#division_public_id ⇒ Object
readonly
Returns the value of attribute division_public_id.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(event:, url:) ⇒ CreateService
constructor
A new instance of CreateService.
Methods inherited from BaseService
Constructor Details
#initialize(event:, url:) ⇒ CreateService
Returns a new instance of CreateService.
8 9 10 11 12 13 |
# File 'app/services/solidus_bolt/webhooks/create_service.rb', line 8 def initialize(event:, url:) @event = event @url = url @division_public_id = SolidusBolt::BoltConfiguration.fetch.division_public_id super end |
Instance Attribute Details
#division_public_id ⇒ Object (readonly)
Returns the value of attribute division_public_id.
6 7 8 |
# File 'app/services/solidus_bolt/webhooks/create_service.rb', line 6 def division_public_id @division_public_id end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'app/services/solidus_bolt/webhooks/create_service.rb', line 6 def event @event end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'app/services/solidus_bolt/webhooks/create_service.rb', line 6 def url @url end |
Instance Method Details
#call ⇒ Object
15 16 17 |
# File 'app/services/solidus_bolt/webhooks/create_service.rb', line 15 def call create end |