# class ProjectGroup

### Public Instance Methods

access_level() click to toggle source

    # File app/models/project_group.rb, line 21
    def access_level
            if project_administrator then
                    return 3
            elsif project_editor then
                    return 2
            else
                    return 1
            end
    end

access_level=(new_access_level) click to toggle source

    # File app/models/project_group.rb, line 31
    def access_level=(new_access_level)
            new_access_level = new_access_level.to_i
            if new_access_level >= 3 then
                    project_administrator = true
            else
                    project_administrator = false
            end
            if new_access_level >= 2 then
                    project_editor = true
            else
                    project_editor = false
            end
    end

email() click to toggle source

    # File app/models/project_group.rb, line 9
    def email
            unless user.nil?
                    return user.email
            end
    end

email=(new_email) click to toggle source

    # File app/models/project_group.rb, line 15
    def email=(new_email)
            unless User.find_by_email(email).nil? then
                    user = User.find_by_email(email)
            end
    end