Class: Faker::IndustrySegments

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/industry_segments.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

.industryString

Produces the name of an industry.

Examples:

Faker::IndustrySegments.industry #=> "Basic Materials"

Returns:



17
18
19
# File 'lib/faker/default/industry_segments.rb', line 17

def industry
  fetch('industry_segments.industry')
end

.sectorString

Produces the name of a sector of an industry.

Examples:

Faker::IndustrySegments.sector #=> "Industrial Metals & Mining"

Returns:



43
44
45
# File 'lib/faker/default/industry_segments.rb', line 43

def sector
  fetch('industry_segments.sector')
end

.sub_sectorString

Produces the name of a subsector of an industry.

Examples:

Faker::IndustrySegments.industry #=> "Basic Materials"

Returns:



56
57
58
# File 'lib/faker/default/industry_segments.rb', line 56

def sub_sector
  fetch('industry_segments.sub_sector')
end

.super_sectorString

Produces the name of a super-sector of an industry.

Examples:

Faker::IndustrySegments.super_sector #=> "Basic Resources"

Returns:



30
31
32
# File 'lib/faker/default/industry_segments.rb', line 30

def super_sector
  fetch('industry_segments.super_sector')
end