Guest User

Untitled

a guest
Feb 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Patient
  2.  
  3. def initialize
  4. @ds = DATA_SOURCE.new(username, password)
  5. end
  6. end
  7.  
  8. class DataSource
  9.  
  10. def initialize(username, password)
  11. @u = username
  12. @p = password
  13. end
  14.  
  15. def get_patients_from_backend_service
  16. @patients ||= BackendService.patient_list(@u, @p)
  17. end
  18. end
  19.  
  20. class BackendService
  21.  
  22. def patient_list(u, p)
  23. # http request
  24. end
  25.  
  26. end
Add Comment
Please, Sign In to add comment