class App42::User::User::UserGender

An enum that contains the User Gender either MALE or FEMALE.

Constants

FEMALE
MALE

Public Instance Methods

enum(string) click to toggle source

Sets the value of the UserGender. MALE or FEMALE.

@param value

# File lib/user/User.rb, line 54
def enum(string)
  return UserGender.const_get(string)
end
isAvailable(string) click to toggle source

Returns the value of the UserGender. MALE or FEMALE.

@return the value of UserGender.

# File lib/user/User.rb, line 65
def isAvailable(string)
  if(string == "Male")
    return "Male"
  elsif(string == "Female")
    return "Female";
  else
    return nil
  end
end