class Movlog::Runner
Executable code for file(s) in bin/ folder
Public Class Methods
run!(args)
click to toggle source
# File lib/movlog/runner.rb, line 6 def self.run!(args) omdb_keyword = ARGV[0] unless omdb_keyword puts 'USAGE: movlog [omdb_keyword]' exit(1) end movie = Movlog::Movie.find(t: omdb_keyword) puts "#{movie.title} (#{movie.year})" puts "Actors: #{movie.actors}" puts "Plot: #{movie.plot}" end