Class: Autodeps::Persistency::Mapping
- Inherits:
-
Object
- Object
- Autodeps::Persistency::Mapping
- Defined in:
- lib/autodeps/persistency.rb
Instance Attribute Summary collapse
-
#dependent ⇒ Object
Returns the value of attribute dependent.
-
#key_mapping ⇒ Object
Returns the value of attribute key_mapping.
-
#value_mapping ⇒ Object
Returns the value of attribute value_mapping.
Instance Method Summary collapse
-
#initialize(dependent, key_mapping, value_mapping) ⇒ Mapping
constructor
A new instance of Mapping.
Constructor Details
#initialize(dependent, key_mapping, value_mapping) ⇒ Mapping
Returns a new instance of Mapping.
5 6 7 8 9 |
# File 'lib/autodeps/persistency.rb', line 5 def initialize(dependent, key_mapping, value_mapping) @dependent = dependent @key_mapping = key_mapping @value_mapping = value_mapping end |
Instance Attribute Details
#dependent ⇒ Object
Returns the value of attribute dependent.
4 5 6 |
# File 'lib/autodeps/persistency.rb', line 4 def dependent @dependent end |
#key_mapping ⇒ Object
Returns the value of attribute key_mapping.
4 5 6 |
# File 'lib/autodeps/persistency.rb', line 4 def key_mapping @key_mapping end |
#value_mapping ⇒ Object
Returns the value of attribute value_mapping.
4 5 6 |
# File 'lib/autodeps/persistency.rb', line 4 def value_mapping @value_mapping end |