Exception: JSONAPI::Realizer::Error::InvalidContentTypeHeader
- Inherits:
-
JSONAPI::Realizer::Error
- Object
- StandardError
- JSONAPI::Realizer::Error
- JSONAPI::Realizer::Error::InvalidContentTypeHeader
- Defined in:
- lib/jsonapi/realizer/error/invalid_content_type_header.rb
Instance Attribute Summary collapse
-
#given ⇒ Object
Returns the value of attribute given.
-
#wanted ⇒ Object
Returns the value of attribute wanted.
Instance Method Summary collapse
Instance Attribute Details
#given ⇒ Object
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 |
#wanted ⇒ Object
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
#message ⇒ Object
8 9 10 |
# File 'lib/jsonapi/realizer/error/invalid_content_type_header.rb', line 8 def "HTTP Content-Type Header recieved is #{given}, but expected #{wanted}" end |