Class: Url2PngDc::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/url2png/cache.rb

Overview

TODO Rename this, “Cache” sounds a bit misleading in this context

Instance Method Summary collapse

Constructor Details

#initialize(url_2json_url) ⇒ Cache

Returns a new instance of Cache.



5
6
7
# File 'lib/url2png/cache.rb', line 5

def initialize(url_2json_url)
  @url_2json_url = url_2json_url
end

Instance Method Details

#urlObject



9
10
11
# File 'lib/url2png/cache.rb', line 9

def url
  parse_out_cache_url_from_payload
end