Class: Patient

Inherits:
Object
  • Object
show all
Defined in:
lib/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePatient

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

#emailObject

Returns the value of attribute email.



2
3
4
# File 'lib/user.rb', line 2

def email
  @email
end

#nameObject

Returns the value of attribute name.



2
3
4
# File 'lib/user.rb', line 2

def name
  @name
end

#phoneObject

Returns the value of attribute phone.



2
3
4
# File 'lib/user.rb', line 2

def phone
  @phone
end

#travelObject

Returns the value of attribute travel.



2
3
4
# File 'lib/user.rb', line 2

def travel
  @travel
end