Sha256: 1b9a7de60afd1f1bc0e365f2591f82afd5731300774bf40379ae90a0add19d96

Contents?: true

Size: 455 Bytes

Versions: 7

Compression:

Stored size: 455 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

7 entries across 7 versions & 1 rubygems

Version Path
digicert-0.5.0 lib/digicert/actions/create.rb
digicert-0.4.1 lib/digicert/actions/create.rb
digicert-0.4.0 lib/digicert/actions/create.rb
digicert-0.3.1 lib/digicert/actions/create.rb
digicert-0.3.0 lib/digicert/actions/create.rb
digicert-0.2.0 lib/digicert/actions/create.rb
digicert-0.1.2 lib/digicert/actions/create.rb