Class: SolidusBolt::Webhooks::CreateService

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/solidus_bolt/webhooks/create_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

call

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_idObject (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

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

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

#callObject



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

def call
  create
end