Class: HID::Persistence::ActiveRecord::Recorder
- Inherits:
-
Object
- Object
- HID::Persistence::ActiveRecord::Recorder
- Defined in:
- lib/hid/persistence/active_record/recorder.rb
Defined Under Namespace
Classes: Records
Class Attribute Summary collapse
-
.records_class ⇒ Object
Returns the value of attribute records_class.
Class Method Summary collapse
Class Attribute Details
.records_class ⇒ Object
Returns the value of attribute records_class.
9 10 11 |
# File 'lib/hid/persistence/active_record/recorder.rb', line 9 def records_class @records_class end |
Class Method Details
.record(input, type) ⇒ Object
11 12 13 14 |
# File 'lib/hid/persistence/active_record/recorder.rb', line 11 def record(input, type) records_class.create input: input, id_type: type nil end |
.recorded(type) ⇒ Object
16 17 18 19 |
# File 'lib/hid/persistence/active_record/recorder.rb', line 16 def recorded(type) return typed_records(type) if type untyped_records end |