Class: Serializer::SerializedValue
- Defined in:
- lib/serializer/value.rb
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Serializer::Value
Instance Method Details
#precondition? ⇒ Boolean
32 33 34 |
# File 'lib/serializer/value.rb', line 32 def precondition? @scope.respond_to?(extraction_key) end |
#value ⇒ Object
36 37 38 |
# File 'lib/serializer/value.rb', line 36 def value @scope.public_send(extraction_key) end |