Class: EpitechApi::Promo
- Inherits:
-
Object
- Object
- EpitechApi::Promo
- Defined in:
- lib/epitech_api/DataTypes/promo.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#size ⇒ Object
Returns the value of attribute size.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
-
#initialize(name, size, year, location) ⇒ Promo
constructor
A new instance of Promo.
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
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/epitech_api/DataTypes/promo.rb', line 4 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/epitech_api/DataTypes/promo.rb', line 4 def name @name end |
#size ⇒ Object
Returns the value of attribute size.
4 5 6 |
# File 'lib/epitech_api/DataTypes/promo.rb', line 4 def size @size end |
#year ⇒ Object
Returns the value of attribute year.
4 5 6 |
# File 'lib/epitech_api/DataTypes/promo.rb', line 4 def year @year end |