Class: FHTTPClient::Cache::Key

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

Class Method Summary collapse

Class Method Details

.generate(*args) ⇒ Object



6
7
8
9
10
11
# File 'lib/f_http_client/cache/key.rb', line 6

def self.generate(*args)
  params = args.extract_options!
  klass = args.first.to_s

  [klass.underscore, params.compact_blank.to_query].filter_map(&:presence).join('?')
end