Class: AlexaSkillsRuby::SimpleCertificateCache
- Inherits:
-
Object
- Object
- AlexaSkillsRuby::SimpleCertificateCache
- Defined in:
- lib/alexa_skills_ruby/simple_certificate_cache.rb
Instance Method Summary collapse
- #get(url) ⇒ Object
-
#initialize ⇒ SimpleCertificateCache
constructor
A new instance of SimpleCertificateCache.
- #set(url, value) ⇒ Object
Constructor Details
#initialize ⇒ SimpleCertificateCache
Returns a new instance of SimpleCertificateCache.
4 5 6 |
# File 'lib/alexa_skills_ruby/simple_certificate_cache.rb', line 4 def initialize @cache = {} end |
Instance Method Details
#get(url) ⇒ Object
8 9 10 |
# File 'lib/alexa_skills_ruby/simple_certificate_cache.rb', line 8 def get(url) @cache[url] end |
#set(url, value) ⇒ Object
12 13 14 |
# File 'lib/alexa_skills_ruby/simple_certificate_cache.rb', line 12 def set(url, value) @cache[url] = value end |