Class: Serializer::ObjectValue
Instance Method Summary collapse
Methods inherited from Value
Constructor Details
This class inherits a constructor from Serializer::Value
Instance Method Details
#precondition? ⇒ Boolean
52 53 54 |
# File 'lib/serializer/value.rb', line 52 def precondition? @scope.respond_to?(extraction_key) end |
#value ⇒ Object
56 57 58 |
# File 'lib/serializer/value.rb', line 56 def value @scope.public_send(extraction_key) end |