Module: FFaker::Movie

Extended by:
ModuleUtils, Movie
Included in:
Movie
Defined in:
lib/ffaker/movie.rb

Constant Summary collapse

SUFFIXES =
[
  'from Hell', 'from Outer Space', 'from Mars', 'from the Black Lagoon', 'with a Thousand Faces',
  'from Across the Ocean', 'Who Fell to Earth', 'That Came to Dinner'
]
COLORS =
%w(Red Yellow Black White)
RATINGS =

According to MPAA

%w(G PG PG-13 R NC-17)

Instance Method Summary collapse

Methods included from ModuleUtils

const_missing, k, underscore

Instance Method Details

#ratingObject


25
26
27
# File 'lib/ffaker/movie.rb', line 25

def rating
  RATINGS.sample
end

#titleObject


16
17
18
19
20
21
22
23
# File 'lib/ffaker/movie.rb', line 16

def title
  case rand(4)
  when 0 then title_with_prefix
  when 1 then title_with_suffix
  when 2 then simple_title
  when 3 then title_from_formula
  end
end