Module: Acfs::Response::Formats
- Included in:
- Acfs::Response
- Defined in:
- lib/acfs/response/formats.rb
Overview
Quick accessors for format handling.
Instance Method Summary collapse
Instance Method Details
#content_type ⇒ Object
9 10 11 |
# File 'lib/acfs/response/formats.rb', line 9 def content_type @content_type ||= read_content_type end |
#json? ⇒ Boolean
13 14 15 |
# File 'lib/acfs/response/formats.rb', line 13 def json? content_type == Mime[:json] end |