Sha256: 529a43808ce254e84a720a1242fff58f0bfea7f398c2b79d8e0f0f7bb797d93d

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

=begin
This is an automatically generated file. DO NOT EDIT.

Generated from version 2.1.86 of the OpenAPI specification at
https://github.com/athenianco/api-spec/releases/tag/2.1.86.
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 6.5.0
=end

require 'date'
require 'time'

module Athenian
  class PullRequestStage
    WIP = 'wip'.freeze
    REVIEWING = 'reviewing'.freeze
    MERGING = 'merging'.freeze
    RELEASING = 'releasing'.freeze
    FORCE_PUSH_DROPPED = 'force_push_dropped'.freeze
    DONE = 'done'.freeze
    RELEASE_IGNORED = 'release_ignored'.freeze
    DEPLOYED = 'deployed'.freeze

    def self.all_vars
      @all_vars ||= [WIP, REVIEWING, MERGING, RELEASING, FORCE_PUSH_DROPPED, DONE, RELEASE_IGNORED, DEPLOYED].freeze
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def self.build_from_hash(value)
      new.build_from_hash(value)
    end

    # Builds the enum from string
    # @param [String] The enum value in the form of the string
    # @return [String] The enum value
    def build_from_hash(value)
      return value if PullRequestStage.all_vars.include?(value)
      raise "Invalid ENUM value #{value} for class #PullRequestStage"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
athenian-2.1.86 lib/athenian/models/pull_request_stage.rb