Add comment about APIResource exclusion for clarity

This commit is contained in:
Brandur 2016-03-04 19:24:15 -08:00
parent adcb806aac
commit c173f802a6

View File

@ -324,6 +324,11 @@ module Stripe
when nil when nil
'' ''
# The logic here is that essentially any object embedded in another
# object that had a `type` is actually an API resource of a different
# type that's been included in the response. These other resources must
# be updated from their proper endpoints, and therefore they are not
# included when serializing even if they've been modified.
when APIResource when APIResource
nil nil