Class: Patient
- Inherits:
-
Object
- Object
- Patient
- Defined in:
- lib/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#travel ⇒ Object
Returns the value of attribute travel.
Instance Method Summary collapse
-
#initialize ⇒ Patient
constructor
A new instance of Patient.
Constructor Details
#initialize ⇒ Patient
Returns a new instance of Patient.
3 4 5 6 7 8 |
# File 'lib/user.rb', line 3 def initialize @name = name @phone = phone @email = email @travel = travel end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'lib/user.rb', line 2 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/user.rb', line 2 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone.
2 3 4 |
# File 'lib/user.rb', line 2 def phone @phone end |
#travel ⇒ Object
Returns the value of attribute travel.
2 3 4 |
# File 'lib/user.rb', line 2 def travel @travel end |