Sha256: 90fc9e323cb9749d23d3389209e5c6f72f58109ebeff26081dcd241a36f5fb47

Contents?: true

Size: 457 Bytes

Versions: 2

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

module CircleCIReporter
  module VCS
    # @abstract Subclass and override {#create_comment} to implement a custom VCS client class.
    class Base
      # @param token [String]
      def initialize(token)
        @token = token
      end

      # @param body [String]
      # @return [void]
      def create_comment(body)
        raise NotImplementedError
      end

      private

      attr_reader :token
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
circleci_reporter-1.0.1 lib/circleci_reporter/vcs/base.rb
circleci_reporter-1.0.0 lib/circleci_reporter/vcs/base.rb