Sha256: c7a11f4a01917fc93e50f7cd7cf6b068d4ec80f2b530c63ee31d8baf21cbe78e

Contents?: true

Size: 318 Bytes

Versions: 2

Compression:

Stored size: 318 Bytes

Contents

module Heart
  class Isometric < Heart::Application
    attr_accessible :fulldate, :movingaverage
    
    def self.find_or_create(date,average)
      Heart::Isometric.where(fulldate: date).where(movingaverage: average).first || 
      Heart::Isometric.create(fulldate: date, movingaverage: average)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heart-0.0.2 app/models/heart/isometric.rb
heart-0.0.1 app/models/heart/isometric.rb