Class: JSE::FieldValueTransform
- Inherits:
-
Object
- Object
- JSE::FieldValueTransform
- Defined in:
- lib/jse/field_value_transform.rb
Instance Method Summary collapse
- #apply(hash) ⇒ Object
-
#initialize(field) ⇒ FieldValueTransform
constructor
A new instance of FieldValueTransform.
Constructor Details
#initialize(field) ⇒ FieldValueTransform
Returns a new instance of FieldValueTransform.
3 4 5 |
# File 'lib/jse/field_value_transform.rb', line 3 def initialize(field) @field = field end |
Instance Method Details
#apply(hash) ⇒ Object
7 8 9 |
# File 'lib/jse/field_value_transform.rb', line 7 def apply(hash) hash[@field] end |