Sha256: 5050502d18cd117ed06fd839662c4073d404824056cac33fb9b4521c5e7f0930
Contents?: true
Size: 1.83 KB
Versions: 1
Compression:
Stored size: 1.83 KB
Contents
=begin This is an automatically generated file. DO NOT EDIT. Generated from version 2.1.81 of the OpenAPI specification at https://github.com/athenianco/api-spec/releases/tag/2.1.81. Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.4.0 =end require 'date' require 'time' module Athenian class DeveloperMetricID COMMITS_PUSHED = 'dev-commits-pushed'.freeze LINES_CHANGED = 'dev-lines-changed'.freeze PRS_CREATED = 'dev-prs-created'.freeze PRS_REVIEWED = 'dev-prs-reviewed'.freeze PRS_MERGED = 'dev-prs-merged'.freeze RELEASES = 'dev-releases'.freeze REVIEWS = 'dev-reviews'.freeze REVIEW_APPROVALS = 'dev-review-approvals'.freeze REVIEW_REJECTIONS = 'dev-review-rejections'.freeze REVIEW_NEUTRALS = 'dev-review-neutrals'.freeze PR_COMMENTS = 'dev-pr-comments'.freeze REGULAR_PR_COMMENTS = 'dev-regular-pr-comments'.freeze REVIEW_PR_COMMENTS = 'dev-review-pr-comments'.freeze ACTIVE = 'dev-active'.freeze ACTIVE0 = 'dev-active0'.freeze WORKED = 'dev-worked'.freeze def self.all_vars @all_vars ||= [COMMITS_PUSHED, LINES_CHANGED, PRS_CREATED, PRS_REVIEWED, PRS_MERGED, RELEASES, REVIEWS, REVIEW_APPROVALS, REVIEW_REJECTIONS, REVIEW_NEUTRALS, PR_COMMENTS, REGULAR_PR_COMMENTS, REVIEW_PR_COMMENTS, ACTIVE, ACTIVE0, WORKED].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 DeveloperMetricID.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #DeveloperMetricID" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
athenian-2.1.81 | lib/athenian/models/developer_metric_id.rb |