Class: Faker::Camera

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/default/camera.rb

Constant Summary

Constants inherited from Base

Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.brandString

Produces a brand of a camera

Examples:

Faker::Camera.brand #=> "Canon"

Returns:

  • (String)

Available since:

  • next


15
16
17
# File 'lib/faker/default/camera.rb', line 15

def brand
  fetch('camera.brand')
end

.brand_with_modelString

Produces a brand with model

Examples:

Faker::Camera.brand_with_model #=> "Canon 450D"

Returns:

  • (String)

Available since:

  • next


41
42
43
# File 'lib/faker/default/camera.rb', line 41

def brand_with_model
  fetch('camera.brand_with_model')
end

.modelString

Produces a model of camera

Examples:

Faker::Camera.model #=> "450D"

Returns:

  • (String)

Available since:

  • next


28
29
30
# File 'lib/faker/default/camera.rb', line 28

def model
  fetch('camera.model')
end