class Blueprinter::Base
def self.render(object, options = {})
-
(String)- JSON formatted String
Other tags:
- Example: Generating JSON with an extended view -
Options Hash:
(**options)-
:meta(Any) -- Defaults to nil. -
:root(Symbol|String) -- Defaults to nil. -
:view(Symbol) -- Defaults to :default.
Parameters:
-
options(Hash) -- the options hash which requires a :view. Any -
object(Object) -- the Object to serialize upon.
def self.render(object, options = {}) jsonify(prepare_for_render(object, options)) end