Class: Hyperactive::Hash::Element
- Inherits:
-
Record::Bass
- Object
- Record::Bass
- Hyperactive::Hash::Element
- Defined in:
- lib/hyperactive/hash.rb
Overview
A wrapper class that knows what key, value and list_element belong together.
Constant Summary
Constants inherited from Record::Bass
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#list_element ⇒ Object
Returns the value of attribute list_element.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Record::Bass
Attributes included from Transactions::Participant
Instance Method Summary collapse
-
#initialize(key, value, list_element) ⇒ Element
constructor
Initialize a new Hash::Element with given
key,valueandlist_element.
Methods inherited from Record::Bass
#<=>, #create, #destroy!, find, get_instance
Methods included from Hyperactive::Hooker::Pimp
append_features, #load_hook, #save_hook
Methods included from Transactions::Participant
append_features, #with_transaction
Methods included from Transactions::Accessors
Methods included from Index::Indexable
Constructor Details
#initialize(key, value, list_element) ⇒ Element
Initialize a new Hash::Element with given key, value and list_element.
42 43 44 45 46 |
# File 'lib/hyperactive/hash.rb', line 42 def initialize(key, value, list_element) self.key = key self.value = value self.list_element = list_element end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
38 39 40 |
# File 'lib/hyperactive/hash.rb', line 38 def key @key end |
#list_element ⇒ Object
Returns the value of attribute list_element.
38 39 40 |
# File 'lib/hyperactive/hash.rb', line 38 def list_element @list_element end |
#value ⇒ Object
Returns the value of attribute value.
38 39 40 |
# File 'lib/hyperactive/hash.rb', line 38 def value @value end |