Method: Payola::EnvWrapper#is_a?

Defined in:
lib/payola.rb

#is_a?(other) ⇒ Boolean

This is a nasty hack to counteract Stripe checking if the API key is_a String See github.com/peterkeen/payola/issues/256 for details

Returns:

  • (Boolean)


145
146
147
# File 'lib/payola.rb', line 145

def is_a?(other)
  ENV[@key].is_a?(other)
end