File: camera.rb

package info (click to toggle)
ruby-faker 2.21.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,076 kB
  • sloc: ruby: 19,088; makefile: 6
file content (46 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# 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