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


131
132
133
# File 'lib/faker/default/cannabis.rb', line 131

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

.buzzwordString

Produces a random buzzword.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.1


118
119
120
# File 'lib/faker/default/cannabis.rb', line 118

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


40
41
42
# File 'lib/faker/default/cannabis.rb', line 40

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


27
28
29
# File 'lib/faker/default/cannabis.rb', line 27

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


92
93
94
# File 'lib/faker/default/cannabis.rb', line 92

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


79
80
81
# File 'lib/faker/default/cannabis.rb', line 79

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


66
67
68
# File 'lib/faker/default/cannabis.rb', line 66

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


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

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


53
54
55
# File 'lib/faker/default/cannabis.rb', line 53

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

.typeString

Produces a random type.

Examples:

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

Returns:

  • (String)

Available since:

  • 1.9.1


105
106
107
# File 'lib/faker/default/cannabis.rb', line 105

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