Module: PinchHitter::Message::ContentType
- Includes:
- Json
- Included in:
- PinchHitter, MessageStore, Service::ReplayWs
- Defined in:
- lib/pinch_hitter/message/content_type.rb
Instance Method Summary collapse
Methods included from Json
Instance Method Details
#determine_content_type(message) ⇒ Object
7 8 9 10 |
# File 'lib/pinch_hitter/message/content_type.rb', line 7 def determine_content_type() return "application/json" if valid_json? "text/xml" end |