Class: Unleashed::CustomParamsEncoder

Inherits:
Object
  • Object
show all
Defined in:
lib/unleashed/client.rb

Class Method Summary collapse

Class Method Details

.decode(query) ⇒ Object



24
25
26
# File 'lib/unleashed/client.rb', line 24

def self.decode(query)
  Faraday::NestedParamsEncoder.decode(query)
end

.encode(params) ⇒ Object



20
21
22
# File 'lib/unleashed/client.rb', line 20

def self.encode(params)
  Faraday::NestedParamsEncoder.encode(params).gsub(/\+/, '%20')
end