Class: HttpStub::Configurer::Request::Omittable
- Inherits:
-
Object
- Object
- HttpStub::Configurer::Request::Omittable
- Defined in:
- lib/http_stub/configurer/request/omittable.rb
Class Method Summary collapse
Class Method Details
.format(value) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/http_stub/configurer/request/omittable.rb', line 7 def self.format(value) value.is_a?(Hash) ? value.reduce({}) do |result, entry| key, value = entry result[key] = value == :omitted ? "control:omitted" : value result end : value end |