Sha256: 563162812d0a43fc82d8d2aab1336433bfe37535131ab3c7c44a8657e1787abc

Contents?: true

Size: 1.12 KB

Versions: 23

Compression:

Stored size: 1.12 KB

Contents

# frozen_string_literal: true

module Faker
  class Movies
    class HowToTrainYourDragon < Base
      class << self
        ##
        # Produces a character from How To Train Your Dragon.
        #
        # @return [String]
        #
        # @example
        #   Faker::Movies::HowToTrainYourDragon.character #=> "Hiccup"
        #
        # @faker.version next
        def character
          fetch('how_to_train_your_dragon.characters')
        end

        ##
        # Produces a location from How To Train Your Dragon.
        #
        # @return [String]
        #
        # @example
        #   Faker::Movies::HowToTrainYourDragon.location #=> "Berk"
        #
        # @faker.version next
        def location
          fetch('how_to_train_your_dragon.locations')
        end

        ##
        # Produces a dragon from How To Train Your Dragon.
        #
        # @return [String]
        #
        # @example
        #   Faker::Movies::HowToTrainYourDragon.dragons #=> "Toothless"
        #
        # @faker.version next
        def dragon
          fetch('how_to_train_your_dragon.dragons')
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

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