Sha256: 6d76a0c379b45a7b1985f05d0583cb37cb78dc0049d69f7e219f02a739dd0e4f
Contents?: true
Size: 658 Bytes
Versions: 2
Compression:
Stored size: 658 Bytes
Contents
=begin #Moonlogs #Moonlogs API OpenAPI spec version: 1.3.5 Contact: shalpack@gmail.com Generated by: https://github.com/swagger-api/swagger-codegen.git Swagger Codegen version: 3.0.52 =end require 'date' module MoonlogsRuby class Role MEMBER = 'Member'.freeze ADMIN = 'Admin'.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
moonlogs-ruby-1.3.5 | lib/moonlogs-ruby/models/role.rb |
moonlogs-ruby-1.3.4 | lib/moonlogs-ruby/models/role.rb |