Class: ActiveRecord::Has::SparseAttributes::Storage
- Inherits:
-
Object
- Object
- ActiveRecord::Has::SparseAttributes::Storage
show all
- Defined in:
- lib/active_record/has/sparse_attributes/storage.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(record, config) ⇒ Storage
Returns a new instance of Storage.
21
22
23
24
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 21
def initialize(record, config)
@record = record
@config = config
end
|
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
18
19
20
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 18
def config
@config
end
|
#record ⇒ Object
Returns the value of attribute record.
19
20
21
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 19
def record
@record
end
|
Instance Method Details
#after_save(*args) ⇒ Object
38
39
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 38
def after_save(*args)
end
|
#before_save(*args) ⇒ Object
32
33
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 32
def before_save(*args)
end
|
#before_update(*args) ⇒ Object
35
36
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 35
def before_update(*args)
end
|
#get(name) ⇒ Object
26
27
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 26
def get(name)
end
|
#set(name, value) ⇒ Object
29
30
|
# File 'lib/active_record/has/sparse_attributes/storage.rb', line 29
def set(name, value)
end
|