Sha256: 6ce35a0369e1c1f3a3d390e015e9fe0728466dc9b0500b8a860e4ba1ae275660
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
=begin #LaunchDarkly REST API #Build custom integrations with the LaunchDarkly REST API OpenAPI spec version: 2.0.3 Contact: support@launchdarkly.com Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 2.3.1 =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-2.0.3 | lib/launchdarkly_api/models/role.rb |