All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.serpro69.kfaker.provider.Cannabis.kt Maven / Gradle / Ivy

package io.github.serpro69.kfaker.provider

import io.github.serpro69.kfaker.*
import io.github.serpro69.kfaker.dictionary.*
import io.github.serpro69.kfaker.provider.unique.LocalUniqueDataProvider
import io.github.serpro69.kfaker.provider.unique.UniqueProviderDelegate

/**
 * [FakeDataProvider] implementation for [YamlCategory.CANNABIS] category.
 */
@Suppress("unused")
class Cannabis internal constructor(fakerService: FakerService) : YamlFakeDataProvider(fakerService) {
    override val yamlCategory = YamlCategory.CANNABIS
    override val localUniqueDataProvider = LocalUniqueDataProvider()
    override val unique by UniqueProviderDelegate(localUniqueDataProvider)

    init {
        fakerService.load(yamlCategory)
    }

    fun strains() = resolve("strains")
    fun cannabinoidAbbreviations() = resolve("cannabinoid_abbreviations")
    fun cannabinoids() = resolve("cannabinoids")
    fun terpenes() = resolve("terpenes")
    fun medicalUses() = resolve("medical_uses")
    fun healthBenefits() = resolve("health_benefits")
    fun categories() = resolve("categories")
    fun types() = resolve("types")
    fun brands() = resolve("brands")
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy