Sha256: 846cd5f49028114a4ff17f98e890aa4f6b5b7b7a4e71b88eb45926829c1c6987

Contents?: true

Size: 852 Bytes

Versions: 23

Compression:

Stored size: 852 Bytes

Contents

# frozen_string_literal: true

module Faker
  class Camera < Base
    class << self
      ##
      # Produces a brand of a camera
      #
      # @return [String]
      #
      # @example
      #   Faker::Camera.brand #=> "Canon"
      #
      # @faker.version next
      def brand
        fetch('camera.brand')
      end

      ##
      # Produces a model of camera
      #
      # @return [String]
      #
      # @example
      #   Faker::Camera.model #=> "450D"
      #
      # @faker.version next
      def model
        fetch('camera.model')
      end

      ##
      # Produces a brand with model
      #
      # @return [String]
      #
      # @example
      #   Faker::Camera.brand_with_model #=> "Canon 450D"
      #
      # @faker.version next
      def brand_with_model
        fetch('camera.brand_with_model')
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
faker-3.5.1 lib/faker/default/camera.rb
faker-3.4.2 lib/faker/default/camera.rb
faker-3.4.1 lib/faker/default/camera.rb
faker-3.3.1 lib/faker/default/camera.rb
faker-3.3.0 lib/faker/default/camera.rb
faker-3.2.3 lib/faker/default/camera.rb
faker-3.2.2 lib/faker/default/camera.rb
faker-3.2.1 lib/faker/default/camera.rb
faker-3.2.0 lib/faker/default/camera.rb
faker-3.1.1 lib/faker/default/camera.rb
faker-3.1.0 lib/faker/default/camera.rb
faker-3.0.0 lib/faker/default/camera.rb
faker-2.23.0 lib/faker/default/camera.rb
faker-2.22.0 lib/faker/default/camera.rb
faker-2.21.0 lib/faker/default/camera.rb
faker-2.20.0 lib/faker/default/camera.rb
faker-2.19.0 lib/faker/default/camera.rb
logstash-output-scalyr-0.1.7 vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/lib/faker/default/camera.rb
faker-2.18.0 lib/faker/default/camera.rb
faker-2.17.0 lib/faker/default/camera.rb