Class: GradientProgram::TimePoint

Inherits:
Object
  • Object
show all
Defined in:
lib/ms/gradient_program.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rateObject

flow_rate in ul/min



155
156
157
# File 'lib/ms/gradient_program.rb', line 155

def flow_rate
  @flow_rate
end

#percentagesObject

percentages



157
158
159
# File 'lib/ms/gradient_program.rb', line 157

def percentages
  @percentages
end

#timeObject

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