class TableauServerClient::Client::EmptyEncoder

Public Instance Methods

decode(str) click to toggle source
# File lib/tableau_server_client/client.rb, line 144
def decode(str)
  str.split('&').map {|p| p.split('=') }.to_h
end
encode(hash) click to toggle source
# File lib/tableau_server_client/client.rb, line 140
def encode(hash)
  hash.keys.map {|k| "#{k}=#{hash[k]}" }.join('&')
end