Method: MultipleMan::AttributeExtractor#as_json

Defined in:
lib/multiple_man/attribute_extractor.rb

#as_jsonObject



14
15
16
17
18
19
20
# File 'lib/multiple_man/attribute_extractor.rb', line 14

def as_json
  if include_previous
    data.merge({previous: data("_was")})
  else
    data
  end
end