Class: LiquidProxy::HeadersToInject
- Inherits:
-
Object
- Object
- LiquidProxy::HeadersToInject
- Defined in:
- lib/liquid-proxy.rb
Instance Method Summary collapse
Instance Method Details
#[]=(key, value) ⇒ Object
10 11 12 |
# File 'lib/liquid-proxy.rb', line 10 def []=(key, value) http.post '/', {key => value}.to_json end |
#clear ⇒ Object
19 20 21 |
# File 'lib/liquid-proxy.rb', line 19 def clear http.delete '/' end |
#set_hash(hash = {}) ⇒ Object
14 15 16 17 |
# File 'lib/liquid-proxy.rb', line 14 def set_hash(hash = {}) clear http.post '/', hash.to_json unless hash.empty? end |