Module: SirenClient::Modules::WithRawResponse

Included in:
Action, Entity, Link
Defined in:
lib/siren_client/modules/with_raw_response.rb

Instance Method Summary collapse

Instance Method Details

#disable_raw_responseObject



13
14
15
# File 'lib/siren_client/modules/with_raw_response.rb', line 13

def disable_raw_response
  @_next_response_is_raw = false
end

#initializeObject



4
5
6
# File 'lib/siren_client/modules/with_raw_response.rb', line 4

def initialize
  @_next_response_is_raw = false
end

#next_response_is_raw?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/siren_client/modules/with_raw_response.rb', line 17

def next_response_is_raw?
  @_next_response_is_raw
end

#with_raw_responseObject



8
9
10
11
# File 'lib/siren_client/modules/with_raw_response.rb', line 8

def with_raw_response
  @_next_response_is_raw = true
  self
end