class Payola::EnvWrapper

Public Class Methods

new(key) click to toggle source
# File lib/payola.rb, line 131
def initialize(key)
  @key = key
end

Public Instance Methods

==(other) click to toggle source
# File lib/payola.rb, line 139
def ==(other)
  to_s == other.to_s
end
is_a?(other) click to toggle source

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

# File lib/payola.rb, line 145
def is_a?(other)
  ENV[@key].is_a?(other)
end
to_s() click to toggle source
# File lib/payola.rb, line 135
def to_s
  ENV[@key]
end