Class: App42::AppTab::Discount
- Inherits:
-
Object
- Object
- App42::AppTab::Discount
- Defined in:
- lib/appTab/Test.rb
Instance Attribute Summary collapse
-
#endDate ⇒ Object
Returns the value of attribute endDate.
-
#percentage ⇒ Object
Returns the value of attribute percentage.
-
#startDate ⇒ Object
Returns the value of attribute startDate.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(dis) ⇒ Discount
constructor
This is a constructor that takes no parameter.
Constructor Details
#initialize(dis) ⇒ Discount
This is a constructor that takes no parameter
35 36 37 |
# File 'lib/appTab/Test.rb', line 35 def initialize(dis) dis.discountDetails = (self) end |
Instance Attribute Details
#endDate ⇒ Object
Returns the value of attribute endDate.
26 27 28 |
# File 'lib/appTab/Test.rb', line 26 def endDate @endDate end |
#percentage ⇒ Object
Returns the value of attribute percentage.
26 27 28 |
# File 'lib/appTab/Test.rb', line 26 def percentage @percentage end |
#startDate ⇒ Object
Returns the value of attribute startDate.
26 27 28 |
# File 'lib/appTab/Test.rb', line 26 def startDate @startDate end |
#usage ⇒ Object
Returns the value of attribute usage.
26 27 28 |
# File 'lib/appTab/Test.rb', line 26 def usage @usage end |