SHARE
TWEET

Untitled

a guest Aug 20th, 2019 116 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ProductionRepo < BaseRepo
  2.   entity_class ProductionEntity
  3.  
  4.   def initialize(data_source: MovieProduction)
  5.     super
  6.   end
  7.  
  8.   def find_by_id(id)
  9.     wrap(data_source.find_by_id(id))
  10.   end
  11.  
  12.   def search_by_title(title)
  13.     wrap(data_source.search_by_title(title))
  14.   end
  15. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top