Class: Hash

Inherits:
Object show all
Defined in:
lib/openneo-auth-signatory.rb

Overview

The following extension used to be present in ActiveSupport, but was removed in version 3. The code has been modified to be more generic and therefore concise.

Instance Method Summary collapse

Instance Method Details

#to_openneo_auth_query(namespace = nil) ⇒ Object



25
26
27
28
29
# File 'lib/openneo-auth-signatory.rb', line 25

def to_openneo_auth_query(namespace = nil)
  collect do |key, value|
    value.to_openneo_auth_query(namespace ? "#{namespace}[#{key}]" : key)
  end.sort * '&'
end