Class: AeUsersMigrator::Export::Person
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- AeUsersMigrator::Export::Person
- Defined in:
- lib/ae_users_migrator/export.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/ae_users_migrator/export.rb', line 23 def as_json( = {}) json = super() if json['person'] json = json['person'] end %w{email_addresses account open_id_identities roles}.each do |assn| json[assn] = self.send(assn).as_json end json end |