Sha256: 2accc9b74ad5e4d7c2e848acf85614e8c290a9f1463bb94e2333cfb6ea937ba7

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require "digicert/actions/base"

module Digicert
  module Actions
    module Create
      extend Digicert::Actions::Base

      def create
        Digicert::Request.new(
          :post, resource_creation_path, **validate(**attributes)
        ).parse
      end

      def resource_creation_path
        resource_path
      end

      module ClassMethods
        def create(attributes)
          new(attributes).create
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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