Sha256: 2f70895526cc87fd35f06322d4e1d73dfa7155ce2d9755607b994eb7c31e125f

Contents?: true

Size: 1.22 KB

Versions: 8

Compression:

Stored size: 1.22 KB

Contents

module Faker
  class Compass < Base
    class << self
      def cardinal
        fetch('compass.cardinal.word')
      end

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

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

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

      def direction
        parse('compass.direction')
      end

      def abbreviation
        parse('compass.abbreviation')
      end

      def azimuth
        parse('compass.azimuth')
      end

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

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

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

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

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

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
faker-1.9.1 lib/faker/compass.rb
faker-1.8.7 lib/faker/compass.rb
faker-1.8.6 lib/faker/compass.rb
faker-1.8.5 lib/faker/compass.rb
faker-1.8.4 lib/faker/compass.rb
faker-1.8.3 lib/faker/compass.rb
faker-1.8.2 lib/faker/compass.rb
faker-1.8.0 lib/faker/compass.rb