Sha256: 9a0ac50449ac673bd4414c0a31729f3528ac90c1fd7755475aeeeb35477dea4c

Contents?: true

Size: 785 Bytes

Versions: 1

Compression:

Stored size: 785 Bytes

Contents

=begin
#LaunchDarkly REST API

#Build custom integrations with the LaunchDarkly REST API

OpenAPI spec version: 3.1.0
Contact: support@launchdarkly.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
Swagger Codegen version: 2.4.8

=end

require 'date'

module LaunchDarklyApi
  class Role
    
    WRITER = 'writer'.freeze
    READER = 'reader'.freeze
    ADMIN = 'admin'.freeze
    OWNER = 'owner'.freeze

    # 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)
      constantValues = Role.constants.select { |c| Role::const_get(c) == value }
      raise "Invalid ENUM value #{value} for class #Role" if constantValues.empty?
      value
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
launchdarkly_api-3.1.0 lib/launchdarkly_api/models/role.rb