Sha256: 06bf46d7533eebd3d26c83c3adb5cb96c46e8b6c29b99ea144144af541e249e6

Contents?: true

Size: 506 Bytes

Versions: 1

Compression:

Stored size: 506 Bytes

Contents

require "digicert/actions/base"

module Digicert
  module Actions
    module Update
      extend Digicert::Actions::Base

      def update
        Digicert::Request.new(
          :put, resource_update_path, **attributes
        ).run
      end

      def resource_update_path
        [resource_path, resource_id].join("/")
      end

      module ClassMethods
        def update(resource_id, attributes)
          new(resource_id: resource_id, **attributes).update
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
digicert-1.0.0 lib/digicert/actions/update.rb