Class: Zitdunyet::Percent
- Inherits:
-
Object
- Object
- Zitdunyet::Percent
- Defined in:
- lib/zitdunyet/percent.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
Instance Method Summary collapse
-
#initialize(amount) ⇒ Percent
constructor
A new instance of Percent.
Constructor Details
#initialize(amount) ⇒ Percent
Returns a new instance of Percent.
7 8 9 |
# File 'lib/zitdunyet/percent.rb', line 7 def initialize(amount) self.amount=amount end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/zitdunyet/percent.rb', line 5 def amount @amount end |