Sha256: 49ef5c86a870291de1ca3458465fda61d781e7ababce6c643ed0dedcf7e765b3

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

module Faker
  # LIRC-related faker stuff
  class LIRC < Base
    class << self
      ##
      # Produces a random LIRC response type
      #
      # @return [String]
      #
      # @example
      #   Faker::LIRC.button_name #=> "KEY_GREEN"
      def button_name
        fetch('lirc.button_name')
      end

      ##
      # Produces a random LIRC response type
      #
      # @return [String]
      #
      # @example
      #   Faker::LIRC.remote_name #=> "RMT-V189-KARAOKE"
      def remote_name
        fetch('lirc.remote_name')
      end

      ##
      # Produces a random LIRC response type
      #
      # @return [String]
      #
      # @example
      #   Faker::LIRC.reply_type #=> "SEND_ONCE"
      def reply_type
        fetch('lirc.reply_type')
      end

      ##
      # Produces a random LIRC response success
      #
      # @return [String]
      #
      # @example
      #   Faker::LIRC.reply_type #=> "SUCCESS"
      def reply_success
        fetch('lirc.reply_success')
      end
    end
  end
end

I18n.load_path += ::Dir[::File.join(__dir__, '*.yml')]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lirc-0.3.0 lib/faker/lirc.rb