Class: Payola::EnvWrapper
- Inherits:
-
Object
- Object
- Payola::EnvWrapper
- Defined in:
- lib/payola.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(key) ⇒ EnvWrapper
constructor
A new instance of EnvWrapper.
- #to_s ⇒ Object
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_s ⇒ Object
130 131 132 |
# File 'lib/payola.rb', line 130 def to_s ENV[@key] end |