Class: Joule::PeakPower

Inherits:
Object
  • Object
show all
Includes:
Hashable
Defined in:
lib/joule/peak_power.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hashable

#to_hash

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

#durationObject

Returns the value of attribute duration.



4
5
6
# File 'lib/joule/peak_power.rb', line 4

def duration
  @duration
end

#startObject

Returns the value of attribute start.



4
5
6
# File 'lib/joule/peak_power.rb', line 4

def start
  @start
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/joule/peak_power.rb', line 4

def value
  @value
end