Class: GradientProgram::TimePoint
- Inherits:
-
Object
- Object
- GradientProgram::TimePoint
- Defined in:
- lib/ms/gradient_program.rb
Instance Attribute Summary collapse
-
#flow_rate ⇒ Object
flow_rate in ul/min.
-
#percentages ⇒ Object
percentages.
-
#time ⇒ Object
time in minutes.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(time = nil, flow_rate = nil, percentages = []) ⇒ TimePoint
constructor
A new instance of TimePoint.
Constructor Details
#initialize(time = nil, flow_rate = nil, percentages = []) ⇒ TimePoint
Returns a new instance of TimePoint.
159 160 161 162 163 |
# File 'lib/ms/gradient_program.rb', line 159 def initialize(time=nil, flow_rate=nil, percentages=[]) @time = time @flow_rate = flow_rate @percentages = percentages end |
Instance Attribute Details
#flow_rate ⇒ Object
flow_rate in ul/min
155 156 157 |
# File 'lib/ms/gradient_program.rb', line 155 def flow_rate @flow_rate end |
#percentages ⇒ Object
percentages
157 158 159 |
# File 'lib/ms/gradient_program.rb', line 157 def percentages @percentages end |
#time ⇒ Object
time in minutes
153 154 155 |
# File 'lib/ms/gradient_program.rb', line 153 def time @time end |
Instance Method Details
#==(other) ⇒ Object
165 166 167 |
# File 'lib/ms/gradient_program.rb', line 165 def ==(other) self.class == other.class and @time==other.time and @flow_rate == other.flow_rate and @percentages == other.percentages end |