package com.github.javafaker;

/**
 * This class is used to generate gender randomly.
 *
 */

public class Gender {
    private final Faker faker;

    protected Gender(Faker faker) {
        this.faker = faker;
    }

    /**
     * This method returns a gender type
     *
     * @return a string of gender type
     */
    public String types() {
        return faker.fakeValuesService().fetchString("gender.types");
    }

    /**
     * This method returns a binary gender type
     *
     * @return a string of binary gender type
     */
    public String binaryTypes() {
        return faker.fakeValuesService().fetchString("gender.binary_types");
    }

    /**
     * This method returns a short binary gender type
     *
     * @return a string of short binary gender type
     */
    public String shortBinaryTypes() {
        return faker.fakeValuesService().fetchString("gender.short_binary_types");
    }
}
