mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
Overrides `#eql?` (hash equality) and `#hash` so that Stripe objects can be used more easily as Hash keys and that certain other frameworks that rely on these methods will have an easier time (e.g. RSpec's `change`, see #687). I think this might be a little controversial if we weren't already overriding the `#==` implementation, but because we are, I think it makes sense to extent it to these two methods as well.