Created
August 8, 2019 04:42
-
-
Save DamirSvrtan/d50846b4123f3613dd9ef34ad0fe4080 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ProductionRepo < BaseRepo | |
entity_class ProductionEntity | |
def initialize(data_source: MovieProduction) | |
super | |
end | |
def find_by_id(id) | |
wrap(data_source.find_by_id(id)) | |
end | |
def search_by_title(title) | |
wrap(data_source.search_by_title(title)) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment