class Faker::IndustrySegments

Public Class Methods

industry() click to toggle source

Produces the name of an industry.

@return [String]

@example

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

@faker.version 1.9.2

# File lib/faker/default/industry_segments.rb, line 17
def industry
  fetch('industry_segments.industry')
end
sector() click to toggle source

Produces the name of a sector of an industry.

@return [String]

@example

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

@faker.version 1.9.2

# File lib/faker/default/industry_segments.rb, line 43
def sector
  fetch('industry_segments.sector')
end
sub_sector() click to toggle source

Produces the name of a subsector of an industry.

@return [String]

@example

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

@faker.version 1.9.2

# File lib/faker/default/industry_segments.rb, line 56
def sub_sector
  fetch('industry_segments.sub_sector')
end
super_sector() click to toggle source

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

@return [String]

@example

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

@faker.version 1.9.2

# File lib/faker/default/industry_segments.rb, line 30
def super_sector
  fetch('industry_segments.super_sector')
end