Sha256: 96d3c261dfc73c840b079ada7f8e6361910443c44b3976d2730d7f1699d5eb2e

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

=begin
#Moonlogs

#Moonlogs API

OpenAPI spec version: 1.14.1
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

1 entries across 1 versions & 1 rubygems

Version Path
moonlogs-ruby-1.14.1 lib/moonlogs-ruby/models/role.rb