Module: Charted::Endable

Included in:
Conversion, Experiment
Defined in:
lib/charted/model.rb

Instance Method Summary collapse

Instance Method Details

#end!Object



24
25
26
27
# File 'lib/charted/model.rb', line 24

def end!
  self.ended_at = DateTime.now
  self.save
end

#ended?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/charted/model.rb', line 20

def ended?
  !!ended_at
end