Class: Faker::Cannabis

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/cannabis.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.brandString

Produces a random brand.

Examples:

Faker::Cannabis.brand #=> "Cannavore Confections"

Returns:

  • (String)

Available since:

  • 1.9.1


121
122
123
# File 'lib/faker/default/cannabis.rb', line 121

def self.brand
  fetch('cannabis.brands')
end

.buzzwordString

Produces a random buzzword.

Examples:

Faker::Cannabis.buzzword #=> "high"

Returns:

  • (String)

Available since:

  • 1.9.1


109
110
111
# File 'lib/faker/default/cannabis.rb', line 109

def self.buzzword
  fetch('cannabis.buzzwords')
end

.cannabinoidString

Produces a random cannabinoid type.

Examples:

Faker::Cannabis.cannabinoid #=> "Cannabinolic Acid"

Returns:

  • (String)

Available since:

  • 1.9.1


37
38
39
# File 'lib/faker/default/cannabis.rb', line 37

def self.cannabinoid
  fetch('cannabis.cannabinoids')
end

.cannabinoid_abbreviationString

Produces a random abbreviation.

Examples:

Faker::Cannabis.cannabinoid_abbreviation #=> "CBGa"

Returns:

  • (String)

Available since:

  • 1.9.1


25
26
27
# File 'lib/faker/default/cannabis.rb', line 25

def self.cannabinoid_abbreviation
  fetch('cannabis.cannabinoid_abbreviations')
end

.categoryString

Produces a random category.

Examples:

Faker::Cannabis.category #=> "crystalline"

Returns:

  • (String)

Available since:

  • 1.9.1


85
86
87
# File 'lib/faker/default/cannabis.rb', line 85

def self.category
  fetch('cannabis.categories')
end

.health_benefitString

Produces a random health benefit.

Examples:

Faker::Cannabis.health_benefit #=> "prevents infection"

Returns:

  • (String)

Available since:

  • 1.9.1


73
74
75
# File 'lib/faker/default/cannabis.rb', line 73

def self.health_benefit
  fetch('cannabis.health_benefits')
end

.medical_useString

Produces a random kind of medical use.

Examples:

Faker::Cannabis.medical_use #=> "anti-cancer"

Returns:

  • (String)

Available since:

  • 1.9.1


61
62
63
# File 'lib/faker/default/cannabis.rb', line 61

def self.medical_use
  fetch('cannabis.medical_uses')
end

.strainString

Produces a random strain.

Examples:

Faker::Cannabis.strain #=> "Super Glue"

Returns:

  • (String)

Available since:

  • 1.9.1


13
14
15
# File 'lib/faker/default/cannabis.rb', line 13

def self.strain
  fetch('cannabis.strains')
end

.terpeneString

Produces a random terpene type.

Examples:

Faker::Cannabis.terpene #=> "Terpinene"

Returns:

  • (String)

Available since:

  • 1.9.1


49
50
51
# File 'lib/faker/default/cannabis.rb', line 49

def self.terpene
  fetch('cannabis.terpenes')
end

.typeString

Produces a random type.

Examples:

Faker::Cannabis.type #=> "indica"

Returns:

  • (String)

Available since:

  • 1.9.1


97
98
99
# File 'lib/faker/default/cannabis.rb', line 97

def self.type
  fetch('cannabis.types')
end