module SirenClient::Modules::WithRawResponse

Public Class Methods

new() click to toggle source
# File lib/siren_client/modules/with_raw_response.rb, line 4
def initialize
  @_next_response_is_raw = false
end

Public Instance Methods

disable_raw_response() click to toggle source
# File lib/siren_client/modules/with_raw_response.rb, line 13
def disable_raw_response
  @_next_response_is_raw = false
end
next_response_is_raw?() click to toggle source
# File lib/siren_client/modules/with_raw_response.rb, line 17
def next_response_is_raw?
  @_next_response_is_raw
end
with_raw_response() click to toggle source
# File lib/siren_client/modules/with_raw_response.rb, line 8
def with_raw_response
  @_next_response_is_raw = true
  self
end

Private Instance Methods

generate_raw_response(method, url, config) click to toggle source
# File lib/siren_client/modules/with_raw_response.rb, line 23
def generate_raw_response(method, url, config)
  RawResponse.new HTTParty.send(method.to_sym, url, config)
end