Class: Faker::Movies::HowToTrainYourDragon

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/movies/how_to_train_your_dragon.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, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.characterString

Produces a character from How To Train Your Dragon.

Examples:

Faker::Movies::HowToTrainYourDragon.character #=> "Hiccup"

Returns:

  • (String)

Available since:

  • next


16
17
18
# File 'lib/faker/movies/how_to_train_your_dragon.rb', line 16

def character
  fetch('how_to_train_your_dragon.characters')
end

.dragonString

Produces a dragon from How To Train Your Dragon.

Examples:

Faker::Movies::HowToTrainYourDragon.dragons #=> "Toothless"

Returns:

  • (String)

Available since:

  • next


42
43
44
# File 'lib/faker/movies/how_to_train_your_dragon.rb', line 42

def dragon
  fetch('how_to_train_your_dragon.dragons')
end

.locationString

Produces a location from How To Train Your Dragon.

Examples:

Faker::Movies::HowToTrainYourDragon.location #=> "Berk"

Returns:

  • (String)

Available since:

  • next


29
30
31
# File 'lib/faker/movies/how_to_train_your_dragon.rb', line 29

def location
  fetch('how_to_train_your_dragon.locations')
end