Class: EpitechApi::Promo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, size, year, location) ⇒ Promo

Returns a new instance of Promo.



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

def initialize(name, size, year, location)
  @name = name
  @size = size
  @year = year
  @location = location
end

Instance Attribute Details

#locationObject

Returns the value of attribute location.



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

def location
  @location
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#sizeObject

Returns the value of attribute size.



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

def size
  @size
end

#yearObject

Returns the value of attribute year.



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

def year
  @year
end