forked from fixin.me/fixin.me
18 lines
194 B
Ruby
18 lines
194 B
Ruby
class Measurement
|
|
include ActiveModel::Model
|
|
|
|
attr_accessor :readouts, :created_at
|
|
|
|
def id
|
|
created_at.to_i
|
|
end
|
|
|
|
def to_param
|
|
id.to_s
|
|
end
|
|
|
|
def persisted?
|
|
true
|
|
end
|
|
end
|