Sha256: 5a839fa407932e4354c3772f1acbb443df5ffb31ca192803b735989f81508ceb

Contents?: true

Size: 1.76 KB

Versions: 24

Compression:

Stored size: 1.76 KB

Contents

# frozen_string_literal: true

module Faker
  class Games
    class HeroesOfTheStorm < Base
      class << self
        ##
        # Produces a battleground from Heroes of the Storm.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::HeroesOfTheStorm.battleground #=> "Towers of Doom"
        #
        # @faker.version 1.9.2
        def battleground
          fetch('heroes_of_the_storm.battlegrounds')
        end

        ##
        # This method is deprecated. The implementation will be removed in a near future release.
        # Use `HeroesOfTheStorm.class_name` instead.
        #
        # @deprecated Use {#class_name} instead.
        def class
          warn '`HeroesOfTheStorm.class` is deprecated. Use `HeroesOfTheStorm.class_name` instead.'

          super
        end

        ##
        # Produces a class name from Heroes of the Storm.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::HeroesOfTheStorm.class_name #=> "Support"
        #
        # @faker.version 2.13.0
        def class_name
          fetch('heroes_of_the_storm.class_names')
        end

        ##
        # Produces a hero from Heroes of the Storm.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::HeroesOfTheStorm.hero #=> "Illidan"
        #
        # @faker.version 1.9.2
        def hero
          fetch('heroes_of_the_storm.heroes')
        end

        ##
        # Produces a quote from Heroes of the Storm.
        #
        # @return [String]
        #
        # @example
        #   Faker::Games::HeroesOfTheStorm.quote #=> "MEAT!!!"
        #
        # @faker.version 1.9.2
        def quote
          fetch('heroes_of_the_storm.quotes')
        end
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

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