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.



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

def initialize(key)
  @key = key
end

Instance Method Details

#==(other) ⇒ Object



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

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

#to_sObject



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

def to_s
  ENV[@key]
end