Class: SuperSettings::Storage::HistoryAttributes
- Inherits:
-
Object
- Object
- SuperSettings::Storage::HistoryAttributes
- Includes:
- Attributes
- Defined in:
- lib/super_settings/storage/history_attributes.rb
Overview
Generic class that can be extended to represent a history record for a setting in memory.
Direct Known Subclasses
SuperSettings::Storage::HttpStorage::HistoryStorage, JSONStorage::HistoryStorage, MongoDBStorage::HistoryStorage, RedisStorage::HistoryStorage
Instance Attribute Summary collapse
-
#changed_by ⇒ Object
Returns the value of attribute changed_by.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#deleted ⇒ Object
writeonly
Sets the attribute deleted.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #deleted? ⇒ Boolean
-
#initialize ⇒ HistoryAttributes
constructor
A new instance of HistoryAttributes.
Methods included from Attributes
Constructor Details
#initialize ⇒ HistoryAttributes
Returns a new instance of HistoryAttributes.
13 14 15 16 17 18 19 20 |
# File 'lib/super_settings/storage/history_attributes.rb', line 13 def initialize(*) @key = nil @value = nil @changed_by = nil @created_at = nil @deleted = false super end |
Instance Attribute Details
#changed_by ⇒ Object
Returns the value of attribute changed_by.
9 10 11 |
# File 'lib/super_settings/storage/history_attributes.rb', line 9 def changed_by @changed_by end |
#created_at ⇒ Object
Returns the value of attribute created_at.
11 12 13 |
# File 'lib/super_settings/storage/history_attributes.rb', line 11 def created_at @created_at end |
#deleted=(value) ⇒ Object (writeonly)
Sets the attribute deleted
10 11 12 |
# File 'lib/super_settings/storage/history_attributes.rb', line 10 def deleted=(value) @deleted = value end |
#key ⇒ Object
Returns the value of attribute key.
9 10 11 |
# File 'lib/super_settings/storage/history_attributes.rb', line 9 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/super_settings/storage/history_attributes.rb', line 9 def value @value end |
Instance Method Details
#deleted? ⇒ Boolean
26 27 28 |
# File 'lib/super_settings/storage/history_attributes.rb', line 26 def deleted? !!@deleted end |