class Faker::Compass

Public Class Methods

abbreviation() click to toggle source

Produces a random abbreviation.

@return [String]

@example

Faker::Compass.abbreviation #=> "NEbN"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 80
def abbreviation
  parse('compass.abbreviation')
end
azimuth() click to toggle source

Produces a random azimuth.

@return [String]

@example

Faker::Compass.azimuth #=> "168.75"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 93
def azimuth
  parse('compass.azimuth')
end
cardinal() click to toggle source

Produces a random cardinal.

@return [String]

@example

Faker::Compass.cardinal #=> "north"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 15
def cardinal
  fetch('compass.cardinal.word')
end
cardinal_abbreviation() click to toggle source

Produces a random cardinal abbreviation.

@return [String]

@example

Faker::Compass.cardinal_abbreviation #=> "N"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 106
def cardinal_abbreviation
  fetch('compass.cardinal.abbreviation')
end
cardinal_azimuth() click to toggle source

Produces a random cardinal azimuth.

@return [String]

@example

Faker::Compass.cardinal_azimuth #=> "90"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 158
def cardinal_azimuth
  fetch('compass.cardinal.azimuth')
end
direction() click to toggle source

Produces a random direction.

@return [String]

@example

Faker::Compass.direction #=> "southeast"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 67
def direction
  parse('compass.direction')
end
half_wind() click to toggle source

Produces a random half wind.

@return [String]

@example

Faker::Compass.half_wind #=> "north-northwest"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 41
def half_wind
  fetch('compass.half-wind.word')
end
half_wind_abbreviation() click to toggle source

Produces a random half wind abbreviation.

@return [String]

@example

Faker::Compass.half_wind_abbreviation #=> "NNE"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 132
def half_wind_abbreviation
  fetch('compass.half-wind.abbreviation')
end
half_wind_azimuth() click to toggle source

Produces a random half wind azimuth.

@return [String]

@example

Faker::Compass.half_wind_azimuth #=> "292.5"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 184
def half_wind_azimuth
  fetch('compass.half-wind.azimuth')
end
ordinal() click to toggle source

Produces a random ordinal.

@return [String]

@example

Faker::Compass.ordinal #=> "northwest"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 28
def ordinal
  fetch('compass.ordinal.word')
end
ordinal_abbreviation() click to toggle source

Produces a random ordinal abbreviation.

@return [String]

@example

Faker::Compass.ordinal_abbreviation #=> "SW"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 119
def ordinal_abbreviation
  fetch('compass.ordinal.abbreviation')
end
ordinal_azimuth() click to toggle source

Produces a random ordinal azimuth.

@return [String]

@example

Faker::Compass.ordinal_azimuth #=> "135"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 171
def ordinal_azimuth
  fetch('compass.ordinal.azimuth')
end
quarter_wind() click to toggle source

Produces a random quarter wind.

@return [String]

@example

Faker::Compass.quarter_wind #=> "north by west"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 54
def quarter_wind
  fetch('compass.quarter-wind.word')
end
quarter_wind_abbreviation() click to toggle source

Produces a random quarter wind abbreviation.

@return [String]

@example

Faker::Compass.quarter_wind_abbreviation #=> "SWbS"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 145
def quarter_wind_abbreviation
  fetch('compass.quarter-wind.abbreviation')
end
quarter_wind_azimuth() click to toggle source

Produces a random quarter wind azimuth

@return [String]

@example

Faker::Compass.quarter_wind_azimuth #=> "56.25"

@faker.version 1.8.0

# File lib/faker/default/compass.rb, line 197
def quarter_wind_azimuth
  fetch('compass.quarter-wind.azimuth')
end