Show movies watched on weekly posts
This commit is contained in:
15
lib/adamantium/client/omdb.rb
Normal file
15
lib/adamantium/client/omdb.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
require "omdb/api"
|
||||
|
||||
module Adamantium
|
||||
module Client
|
||||
class Omdb
|
||||
def initialize(api_key:)
|
||||
@client = ::Omdb::Api::Client.new(api_key: api_key)
|
||||
end
|
||||
|
||||
def call(imdb_id:)
|
||||
@client.find_by_id(imdb_id)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user