Fix a few comments

This commit is contained in:
Brandur 2019-02-01 12:47:36 -08:00
parent 58512a90d8
commit 3798cadfcc

View File

@ -205,13 +205,14 @@ module Stripe
# -- in particular when we send our integer-indexed maps (i.e. arrays), # -- in particular when we send our integer-indexed maps (i.e. arrays),
# Faraday ends up stripping out the integer indexes. # Faraday ends up stripping out the integer indexes.
# #
# We work around the problem by implementing our own simplified decoder and # We work around the problem by implementing our own simplified encoder and
# telling Faraday to use that. # telling Faraday to use that.
class FaradayStripeEncoder class FaradayStripeEncoder
def self.encode(hash) def self.encode(hash)
Util.encode_parameters(hash) Util.encode_parameters(hash)
end end
# We should never need to do this so it's not implemented.
def self.decode(_str) def self.decode(_str)
raise NotImplementedError, "#{self.class.name} does not implement #decode" raise NotImplementedError, "#{self.class.name} does not implement #decode"
end end