Class: Digicert::OrderCancellation

Inherits:
Base
  • Object
show all
Defined in:
lib/digicert/order_cancellation.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Digicert::Base

Class Method Details

.create(order_id:, note:, **attributes) ⇒ Object



11
12
13
# File 'lib/digicert/order_cancellation.rb', line 11

def self.create(order_id:, note:, **attributes)
  new(attributes.merge(resource_id: order_id, note: note)).create
end

Instance Method Details

#createObject



5
6
7
8
9
# File 'lib/digicert/order_cancellation.rb', line 5

def create
  request_klass.new(
    :put, resource_path, **default_attributes.merge(attributes)
  ).run
end