data-transfer-test/models/rate.rb
2020-06-02 23:02:01 -04:00

9 lines
242 B
Ruby

class Rate < ActiveRecord::Base
def self.get_download
all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.download] }
end
def self.get_upload
all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.upload] }
end
end