Class: TableauServerClient::Client::EmptyEncoder
- Inherits:
-
Object
- Object
- TableauServerClient::Client::EmptyEncoder
- Defined in:
- lib/tableau_server_client/client.rb
Instance Method Summary collapse
Instance Method Details
#decode(str) ⇒ Object
144 145 146 |
# File 'lib/tableau_server_client/client.rb', line 144 def decode(str) str.split('&').map {|p| p.split('=') }.to_h end |
#encode(hash) ⇒ Object
140 141 142 |
# File 'lib/tableau_server_client/client.rb', line 140 def encode(hash) hash.keys.map {|k| "#{k}=#{hash[k]}" }.join('&') end |