Module: Url2PngDc::UrlHelpers::InstanceMethods
- Defined in:
- lib/url2png/url_helper.rb
Instance Method Summary collapse
- #url_2cache(url, options = {}) ⇒ Object
- #url_2json(url, options = {}) ⇒ Object
- #url_2png(url, options = {}) ⇒ Object
Instance Method Details
#url_2cache(url, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/url2png/url_helper.rb', line 18 def url_2cache(url, = {}) _cache = Cache.new url_2json(url, ) _cache.url || url_2png(url, ) end |
#url_2json(url, options = {}) ⇒ Object
14 15 16 |
# File 'lib/url2png/url_helper.rb', line 14 def url_2json(url, = {}) url_builder(query_string_builder(url, ), :json) end |
#url_2png(url, options = {}) ⇒ Object
10 11 12 |
# File 'lib/url2png/url_helper.rb', line 10 def url_2png(url, = {}) url_builder(query_string_builder(url, )) end |