mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
This patch adds question marks helpers (e.g. #paid?) for any values in a StripeObject that are a boolean. This is fairly idiomatic Ruby in that it behaves similarly to other libraries like ActiveRecord. Note that a caveat here is that nullable booleans will not get a helper added for them if their current value is null. For this reason, we should eventually prefer to derive these methods from some sort of programmatic API manifest. Replaces #257 and #274.