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, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale

Class Method Details

.brandString

Produces a random brand.

Examples:

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

Returns:



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:



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:



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:



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:



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:



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:



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:



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:



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:



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

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