Sha256: bbc9d7668013879e9ff12cde6ca7544b1a31c653c925c3d582c5c4bee0df1eae

Contents?: true

Size: 764 Bytes

Versions: 4

Compression:

Stored size: 764 Bytes

Contents

#
# Ruby classes automatically generated from java classes-- don't edit
#
module Killbill
  module Plugin
    module Model

      class UserType

        @@admissible_values  = [:SYSTEM, :ADMIN, :CUSTOMER, :MIGRATION, :TEST]
        attr_reader :enum

        def initialize(value)
          raise ArgumentError.new("Enum UserType does not have such value : #{value}") if ! UserType.is_admissible_value?(value)
          @enum = value
        end

        def ==(other)
          return false if other.nil?
          self.enum == other.enum
        end

        def self.is_admissible_value?(value)
          @@admissible_values.include?(value)
        end

        def self.admissible_values
          @@admissible_values
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
killbill-1.0.19 lib/killbill/gen/user_type.rb
killbill-1.0.18 lib/killbill/gen/user_type.rb
killbill-1.0.17 lib/killbill/gen/user_type.rb
killbill-1.0.16 lib/killbill/gen/user_type.rb