Class: Card::Format::JsonldFormat
- Inherits:
-
JsonFormat
- Object
- Card::Format
- DataFormat
- JsonFormat
- Card::Format::JsonldFormat
- Defined in:
- lib/card/format/jsonld_format.rb
Overview
card format class for json (JavaScript Object Notation) views
Instance Method Summary collapse
- #mime_type ⇒ Object
-
#page_details(obj) ⇒ Object
overrides #page_details in Json format, which adds standard info to every request.
Methods inherited from JsonFormat
Instance Method Details
#mime_type ⇒ Object
8 9 10 |
# File 'lib/card/format/jsonld_format.rb', line 8 def mime_type "application/ld+json" end |
#page_details(obj) ⇒ Object
overrides #page_details in Json format, which adds standard info to every request
13 14 15 |
# File 'lib/card/format/jsonld_format.rb', line 13 def page_details obj obj end |