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.
131 132 133 |
# File 'lib/payola.rb', line 131 def initialize(key) @key = key end |
Instance Method Details
#==(other) ⇒ Object
139 140 141 |
# File 'lib/payola.rb', line 139 def ==(other) to_s == other.to_s end |
#to_s ⇒ Object
135 136 137 |
# File 'lib/payola.rb', line 135 def to_s ENV[@key] end |