Exception: JSONAPI::Realizer::Error::InvalidContentTypeHeader

Inherits:
JSONAPI::Realizer::Error show all
Defined in:
lib/jsonapi/realizer/error/invalid_content_type_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#givenObject

Returns the value of attribute given.



5
6
7
# File 'lib/jsonapi/realizer/error/invalid_content_type_header.rb', line 5

def given
  @given
end

#wantedObject

Returns the value of attribute wanted.



6
7
8
# File 'lib/jsonapi/realizer/error/invalid_content_type_header.rb', line 6

def wanted
  @wanted
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/jsonapi/realizer/error/invalid_content_type_header.rb', line 8

def message
  "HTTP Content-Type Header recieved is #{given}, but expected #{wanted}"
end