Class: App42::AppTab::Discount

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endDateObject

Returns the value of attribute endDate.



26
27
28
# File 'lib/appTab/Test.rb', line 26

def endDate
  @endDate
end

#percentageObject

Returns the value of attribute percentage.



26
27
28
# File 'lib/appTab/Test.rb', line 26

def percentage
  @percentage
end

#startDateObject

Returns the value of attribute startDate.



26
27
28
# File 'lib/appTab/Test.rb', line 26

def startDate
  @startDate
end

#usageObject

Returns the value of attribute usage.



26
27
28
# File 'lib/appTab/Test.rb', line 26

def usage
  @usage
end