Sha256: 064d42ccfb0a6f9e182439022fa8a08fbd98f6634debc2d03766cd3d48952fa5

Contents?: true

Size: 1.32 KB

Versions: 37

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true

module Faker
  class IndustrySegments < Base
    flexible :industry_segments

    class << self
      ##
      # Produces the name of an industry.
      #
      # @return [String]
      #
      # @example
      #   Faker::IndustrySegments.industry #=> "Basic Materials"
      #
      # @faker.version 1.9.2
      def industry
        fetch('industry_segments.industry')
      end

      ##
      # Produces the name of a super-sector of an industry.
      #
      # @return [String]
      #
      # @example
      #   Faker::IndustrySegments.super_sector #=> "Basic Resources"
      #
      # @faker.version 1.9.2
      def super_sector
        fetch('industry_segments.super_sector')
      end

      ##
      # Produces the name of a sector of an industry.
      #
      # @return [String]
      #
      # @example
      #   Faker::IndustrySegments.sector #=> "Industrial Metals & Mining"
      #
      # @faker.version 1.9.2
      def sector
        fetch('industry_segments.sector')
      end

      ##
      # Produces the name of a subsector of an industry.
      #
      # @return [String]
      #
      # @example
      #   Faker::IndustrySegments.industry #=> "Basic Materials"
      #
      # @faker.version 1.9.2
      def sub_sector
        fetch('industry_segments.sub_sector')
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
faker-3.5.1 lib/faker/default/industry_segments.rb
faker-3.4.2 lib/faker/default/industry_segments.rb
faker-3.4.1 lib/faker/default/industry_segments.rb
faker-3.3.1 lib/faker/default/industry_segments.rb
faker-3.3.0 lib/faker/default/industry_segments.rb
faker-3.2.3 lib/faker/default/industry_segments.rb
faker-3.2.2 lib/faker/default/industry_segments.rb
faker-3.2.1 lib/faker/default/industry_segments.rb
faker-3.2.0 lib/faker/default/industry_segments.rb
faker-3.1.1 lib/faker/default/industry_segments.rb
faker-3.1.0 lib/faker/default/industry_segments.rb
faker-3.0.0 lib/faker/default/industry_segments.rb
faker-2.23.0 lib/faker/default/industry_segments.rb
faker-2.22.0 lib/faker/default/industry_segments.rb
faker-2.21.0 lib/faker/default/industry_segments.rb
faker-2.20.0 lib/faker/default/industry_segments.rb
faker-2.19.0 lib/faker/default/industry_segments.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/lib/faker/default/industry_segments.rb
faker-2.18.0 lib/faker/default/industry_segments.rb
faker-2.17.0 lib/faker/default/industry_segments.rb