Skip to content

Instantly share code, notes, and snippets.

@DamirSvrtan
Created August 8, 2019 04:42
Show Gist options
  • Save DamirSvrtan/d50846b4123f3613dd9ef34ad0fe4080 to your computer and use it in GitHub Desktop.
Save DamirSvrtan/d50846b4123f3613dd9ef34ad0fe4080 to your computer and use it in GitHub Desktop.
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