Class: Sparoid::Instance
Overview
Instance of SPAroid that only resolved public_ip once
Constant Summary
Constants included
from Sparoid
SPAROID_CACHE_PATH, VERSION
Instance Method Summary
collapse
Methods included from Sparoid
#auth, #fdpass, #keygen
Instance Method Details
#cached_public_ip ⇒ Object
191
192
193
|
# File 'lib/sparoid.rb', line 191
def cached_public_ip
public_ip
end
|
#public_ip(*args) ⇒ Object
187
188
189
|
# File 'lib/sparoid.rb', line 187
def public_ip(*args)
@public_ip ||= super
end
|