Sha256: 8c2f33c7966a61ae0a3a2351f2d45cbc14407ba0b2b623d7a442e7e6f0f5ef90
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: 5.0.1 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-5.0.1 | lib/launchdarkly_api/models/role.rb |