Class: EpitechApi::BasicStudent

Inherits:
Object
  • Object
show all
Defined in:
lib/epitech_api/DataTypes/basic_student.rb

Direct Known Subclasses

Student

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(login, first_name, last_name, picture, location) ⇒ BasicStudent

Returns a new instance of BasicStudent.



6
7
8
9
10
11
12
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 6

def initialize(, first_name, last_name, picture, location)
  @login = 
  @first_name = first_name
  @last_name = last_name
  @picture = picture
  @location = location
end

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 4

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 4

def last_name
  @last_name
end

#locationObject

Returns the value of attribute location.



4
5
6
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 4

def location
  @location
end

#loginObject

Returns the value of attribute login.



4
5
6
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 4

def 
  @login
end

#pictureObject

Returns the value of attribute picture.



4
5
6
# File 'lib/epitech_api/DataTypes/basic_student.rb', line 4

def picture
  @picture
end