Class: Card::Format::JsonldFormat

Inherits:
JsonFormat show all
Defined in:
lib/card/format/jsonld_format.rb

Overview

card format class for json (JavaScript Object Notation) views

Instance Method Summary collapse

Methods inherited from JsonFormat

#expand_stubs

Instance Method Details

#mime_typeObject



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