Class: Faker::Compass

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

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.abbreviationObject



24
25
26
# File 'lib/faker/compass.rb', line 24

def abbreviation
  parse('compass.abbreviation')
end

.azimuthObject



28
29
30
# File 'lib/faker/compass.rb', line 28

def azimuth
  parse('compass.azimuth')
end

.cardinalObject



4
5
6
# File 'lib/faker/compass.rb', line 4

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

.cardinal_abbreviationObject



32
33
34
# File 'lib/faker/compass.rb', line 32

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

.cardinal_azimuthObject



48
49
50
# File 'lib/faker/compass.rb', line 48

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

.directionObject



20
21
22
# File 'lib/faker/compass.rb', line 20

def direction
  parse('compass.direction')
end

.half_windObject



12
13
14
# File 'lib/faker/compass.rb', line 12

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

.half_wind_abbreviationObject



40
41
42
# File 'lib/faker/compass.rb', line 40

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

.half_wind_azimuthObject



56
57
58
# File 'lib/faker/compass.rb', line 56

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

.ordinalObject



8
9
10
# File 'lib/faker/compass.rb', line 8

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

.ordinal_abbreviationObject



36
37
38
# File 'lib/faker/compass.rb', line 36

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

.ordinal_azimuthObject



52
53
54
# File 'lib/faker/compass.rb', line 52

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

.quarter_windObject



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

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

.quarter_wind_abbreviationObject



44
45
46
# File 'lib/faker/compass.rb', line 44

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

.quarter_wind_azimuthObject



60
61
62
# File 'lib/faker/compass.rb', line 60

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