Class: RailsPerformance::Models::BaseRecord
- Inherits:
-
Object
- Object
- RailsPerformance::Models::BaseRecord
show all
- Defined in:
- lib/rails_performance/models/base_record.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.from_db(key, value) ⇒ Object
4
5
6
|
# File 'lib/rails_performance/models/base_record.rb', line 4
def self.from_db(key, value)
raise 'implement me'
end
|
Instance Method Details
#duration ⇒ Object
20
21
22
|
# File 'lib/rails_performance/models/base_record.rb', line 20
def duration
value['duration']
end
|
#record_hash ⇒ Object
12
13
14
|
# File 'lib/rails_performance/models/base_record.rb', line 12
def record_hash
raise 'implement me'
end
|
#save ⇒ Object
8
9
10
|
# File 'lib/rails_performance/models/base_record.rb', line 8
def save
raise 'implement me'
end
|
#value ⇒ Object
16
17
18
|
# File 'lib/rails_performance/models/base_record.rb', line 16
def value
@value ||= JSON.parse(@json || "{}")
end
|