Class: Joule::PeakPower
- Inherits:
-
Object
- Object
- Joule::PeakPower
- Includes:
- Hashable
- Defined in:
- lib/joule/peak_power.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#start ⇒ Object
Returns the value of attribute start.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(duration) ⇒ PeakPower
constructor
A new instance of PeakPower.
Methods included from Hashable
Constructor Details
#initialize(duration) ⇒ PeakPower
Returns a new instance of PeakPower.
6 7 8 9 10 |
# File 'lib/joule/peak_power.rb', line 6 def initialize(duration) @duration = duration @value = 0 @start = 0 end |
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration.
4 5 6 |
# File 'lib/joule/peak_power.rb', line 4 def duration @duration end |
#start ⇒ Object
Returns the value of attribute start.
4 5 6 |
# File 'lib/joule/peak_power.rb', line 4 def start @start end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/joule/peak_power.rb', line 4 def value @value end |