Method: Her::Model::Parse::ClassMethods#include_root_in_json

Defined in:
lib/her/model/parse.rb

#include_root_in_json(value, options = {}) ⇒ Object

Return or change the value of ‘include_root_in_json`

Examples:

class User
  include Her::Model
  include_root_in_json true
end


84
85
86
87
# File 'lib/her/model/parse.rb', line 84

def include_root_in_json(value, options = {})
  @_her_include_root_in_json = value
  @_her_include_root_in_json_format = options[:format]
end