Class: Payola::EnvWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/payola.rb

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ EnvWrapper

Returns a new instance of EnvWrapper.



127
128
129
# File 'lib/payola.rb', line 127

def initialize(key)
  @key = key
end

Instance Method Details

#==(other) ⇒ Object



135
136
137
# File 'lib/payola.rb', line 135

def ==(other)
  to_s == other.to_s
end

#to_sObject



131
132
133
# File 'lib/payola.rb', line 131

def to_s
  ENV[@key]
end