i have a class Inpatient with his attributes like name, address, etc.
i want to catch the inpatient data from database, how i can do this?
i want add inpatients when i give the name, and so all attributes of
inpatient should come from database.
i hope i could define my prolem.
how can i implement this with ruby?