class Blueprinter::Base
def self.render_as_json(object, options = {})
-
(Hash)-
Other tags:
- Example: Generating a hash 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_as_json(object, options = {}) prepare_for_render(object, options).as_json end