Class: Galactus::NotModifiedResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/galactus/response.rb

Instance Attribute Summary

Attributes inherited from Response

#raw_response

Instance Method Summary collapse

Methods inherited from Response

create

Constructor Details

#initialize(response) ⇒ NotModifiedResponse

Returns a new instance of NotModifiedResponse.



32
33
34
35
36
37
38
# File 'lib/galactus/response.rb', line 32

def initialize(response)
  super({
    status: 'Not Modified',
    code: 304,
    data: {},
    etag: response.headers['etag'] })
end