Class: Faker::Compass
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.abbreviation ⇒ String
Produces a random abbreviation.
-
.azimuth ⇒ String
Produces a random azimuth.
-
.cardinal ⇒ String
Produces a random cardinal.
-
.cardinal_abbreviation ⇒ String
Produces a random cardinal abbreviation.
-
.cardinal_azimuth ⇒ String
Produces a random cardinal azimuth.
-
.direction ⇒ String
Produces a random direction.
-
.half_wind ⇒ String
Produces a random half wind.
-
.half_wind_abbreviation ⇒ String
Produces a random half wind abbreviation.
-
.half_wind_azimuth ⇒ String
Produces a random half wind azimuth.
-
.ordinal ⇒ String
Produces a random ordinal.
-
.ordinal_abbreviation ⇒ String
Produces a random ordinal abbreviation.
-
.ordinal_azimuth ⇒ String
Produces a random ordinal azimuth.
-
.quarter_wind ⇒ String
Produces a random quarter wind.
-
.quarter_wind_abbreviation ⇒ String
Produces a random quarter wind abbreviation.
-
.quarter_wind_azimuth ⇒ String
Produces a random quarter wind azimuth.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.abbreviation ⇒ String
Produces a random abbreviation.
80 81 82 |
# File 'lib/faker/default/compass.rb', line 80 def abbreviation parse('compass.abbreviation') end |
.azimuth ⇒ String
Produces a random azimuth.
93 94 95 |
# File 'lib/faker/default/compass.rb', line 93 def azimuth parse('compass.azimuth') end |
.cardinal ⇒ String
Produces a random cardinal.
15 16 17 |
# File 'lib/faker/default/compass.rb', line 15 def cardinal fetch('compass.cardinal.word') end |
.cardinal_abbreviation ⇒ String
Produces a random cardinal abbreviation.
106 107 108 |
# File 'lib/faker/default/compass.rb', line 106 def cardinal_abbreviation fetch('compass.cardinal.abbreviation') end |
.cardinal_azimuth ⇒ String
Produces a random cardinal azimuth.
158 159 160 |
# File 'lib/faker/default/compass.rb', line 158 def cardinal_azimuth fetch('compass.cardinal.azimuth') end |
.direction ⇒ String
Produces a random direction.
67 68 69 |
# File 'lib/faker/default/compass.rb', line 67 def direction parse('compass.direction') end |
.half_wind ⇒ String
Produces a random half wind.
41 42 43 |
# File 'lib/faker/default/compass.rb', line 41 def half_wind fetch('compass.half-wind.word') end |
.half_wind_abbreviation ⇒ String
Produces a random half wind abbreviation.
132 133 134 |
# File 'lib/faker/default/compass.rb', line 132 def half_wind_abbreviation fetch('compass.half-wind.abbreviation') end |
.half_wind_azimuth ⇒ String
Produces a random half wind azimuth.
184 185 186 |
# File 'lib/faker/default/compass.rb', line 184 def half_wind_azimuth fetch('compass.half-wind.azimuth') end |
.ordinal ⇒ String
Produces a random ordinal.
28 29 30 |
# File 'lib/faker/default/compass.rb', line 28 def ordinal fetch('compass.ordinal.word') end |
.ordinal_abbreviation ⇒ String
Produces a random ordinal abbreviation.
119 120 121 |
# File 'lib/faker/default/compass.rb', line 119 def ordinal_abbreviation fetch('compass.ordinal.abbreviation') end |
.ordinal_azimuth ⇒ String
Produces a random ordinal azimuth.
171 172 173 |
# File 'lib/faker/default/compass.rb', line 171 def ordinal_azimuth fetch('compass.ordinal.azimuth') end |
.quarter_wind ⇒ String
Produces a random quarter wind.
54 55 56 |
# File 'lib/faker/default/compass.rb', line 54 def quarter_wind fetch('compass.quarter-wind.word') end |
.quarter_wind_abbreviation ⇒ String
Produces a random quarter wind abbreviation.
145 146 147 |
# File 'lib/faker/default/compass.rb', line 145 def quarter_wind_abbreviation fetch('compass.quarter-wind.abbreviation') end |
.quarter_wind_azimuth ⇒ String
Produces a random quarter wind azimuth
197 198 199 |
# File 'lib/faker/default/compass.rb', line 197 def quarter_wind_azimuth fetch('compass.quarter-wind.azimuth') end |