Sha256: b702b9402b78f9cc90f3a1f0026db277586247a62ebfda4cf02ed0359cfbcadd
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
module SirenClient module Modules module WithRawResponse def initialize @_next_response_is_raw = false end def with_raw_response @_next_response_is_raw = true self end def disable_raw_response @_next_response_is_raw = false end def next_response_is_raw? @_next_response_is_raw end private def generate_raw_response(method, url, config) RawResponse.new HTTParty.send(method.to_sym, url, config) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems