Class: TableauServerClient::Client::EmptyEncoder

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

Instance Method Summary collapse

Instance Method Details

#decode(str) ⇒ Object



115
116
117
# File 'lib/tableau_server_client/client.rb', line 115

def decode(str)
  str.split('&').map {|p| p.split('=') }.to_h
end

#encode(hash) ⇒ Object



111
112
113
# File 'lib/tableau_server_client/client.rb', line 111

def encode(hash)
  hash.keys.map {|k| "#{k}=#{hash[k]}" }.join('&')
end