Class: JSE::FieldValueTransform

Inherits:
Object
  • Object
show all
Defined in:
lib/jse/field_value_transform.rb

Instance Method Summary collapse

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