Class: AlexaSkillsRuby::SimpleCertificateCache

Inherits:
Object
  • Object
show all
Defined in:
lib/alexa_skills_ruby/simple_certificate_cache.rb

Instance Method Summary collapse

Constructor Details

#initializeSimpleCertificateCache

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