Module: Url2PngDc::UrlHelpers::InstanceMethods

Defined in:
lib/url2png/url_helper.rb

Instance Method Summary collapse

Instance Method Details

#url_2cache(url, options = {}) ⇒ Object



18
19
20
21
# File 'lib/url2png/url_helper.rb', line 18

def url_2cache(url, options = {})
  _cache = Cache.new url_2json(url, options)
  _cache.url || url_2png(url, options)
end

#url_2json(url, options = {}) ⇒ Object



14
15
16
# File 'lib/url2png/url_helper.rb', line 14

def url_2json(url, options = {})
  url_builder(query_string_builder(url, options), :json)
end

#url_2png(url, options = {}) ⇒ Object



10
11
12
# File 'lib/url2png/url_helper.rb', line 10

def url_2png(url, options = {})
  url_builder(query_string_builder(url, options))
end