Class: Faker::Compass

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/compass.rb

Constant Summary

Constants inherited from Base

Base::Letters, 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

.abbreviationObject


26
27
28
# File 'lib/faker/default/compass.rb', line 26

def abbreviation
  parse('compass.abbreviation')
end

.azimuthObject


30
31
32
# File 'lib/faker/default/compass.rb', line 30

def azimuth
  parse('compass.azimuth')
end

.cardinalObject


6
7
8
# File 'lib/faker/default/compass.rb', line 6

def cardinal
  fetch('compass.cardinal.word')
end

.cardinal_abbreviationObject


34
35
36
# File 'lib/faker/default/compass.rb', line 34

def cardinal_abbreviation
  fetch('compass.cardinal.abbreviation')
end

.cardinal_azimuthObject


50
51
52
# File 'lib/faker/default/compass.rb', line 50

def cardinal_azimuth
  fetch('compass.cardinal.azimuth')
end

.directionObject


22
23
24
# File 'lib/faker/default/compass.rb', line 22

def direction
  parse('compass.direction')
end

.half_windObject


14
15
16
# File 'lib/faker/default/compass.rb', line 14

def half_wind
  fetch('compass.half-wind.word')
end

.half_wind_abbreviationObject


42
43
44
# File 'lib/faker/default/compass.rb', line 42

def half_wind_abbreviation
  fetch('compass.half-wind.abbreviation')
end

.half_wind_azimuthObject


58
59
60
# File 'lib/faker/default/compass.rb', line 58

def half_wind_azimuth
  fetch('compass.half-wind.azimuth')
end

.ordinalObject


10
11
12
# File 'lib/faker/default/compass.rb', line 10

def ordinal
  fetch('compass.ordinal.word')
end

.ordinal_abbreviationObject


38
39
40
# File 'lib/faker/default/compass.rb', line 38

def ordinal_abbreviation
  fetch('compass.ordinal.abbreviation')
end

.ordinal_azimuthObject


54
55
56
# File 'lib/faker/default/compass.rb', line 54

def ordinal_azimuth
  fetch('compass.ordinal.azimuth')
end

.quarter_windObject


18
19
20
# File 'lib/faker/default/compass.rb', line 18

def quarter_wind
  fetch('compass.quarter-wind.word')
end

.quarter_wind_abbreviationObject


46
47
48
# File 'lib/faker/default/compass.rb', line 46

def quarter_wind_abbreviation
  fetch('compass.quarter-wind.abbreviation')
end

.quarter_wind_azimuthObject


62
63
64
# File 'lib/faker/default/compass.rb', line 62

def quarter_wind_azimuth
  fetch('compass.quarter-wind.azimuth')
end