2020-05-31 17:40:20 +00:00
|
|
|
json.id resource.id
|
|
|
|
json.provider resource.provider
|
|
|
|
json.uid resource.uid
|
|
|
|
json.name resource.name
|
2020-07-20 12:58:14 +00:00
|
|
|
json.display_name resource.display_name
|
2020-05-31 17:40:20 +00:00
|
|
|
json.email resource.email
|
2020-06-02 18:20:39 +00:00
|
|
|
json.account_id resource.active_account_user&.account_id
|
2020-05-31 17:40:20 +00:00
|
|
|
json.pubsub_token resource.pubsub_token
|
2020-06-02 18:20:39 +00:00
|
|
|
json.role resource.active_account_user&.role
|
|
|
|
json.inviter_id resource.active_account_user&.inviter_id
|
2020-05-31 17:40:20 +00:00
|
|
|
json.confirmed resource.confirmed?
|
|
|
|
json.avatar_url resource.avatar_url
|
|
|
|
json.access_token resource.access_token.token
|
2020-07-04 06:12:47 +00:00
|
|
|
json.availability_status resource.availability_status
|
2020-05-31 17:40:20 +00:00
|
|
|
json.accounts do
|
|
|
|
json.array! resource.account_users do |account_user|
|
|
|
|
json.id account_user.account_id
|
|
|
|
json.name account_user.account.name
|
|
|
|
json.active_at account_user.active_at
|
|
|
|
json.role account_user.role
|
|
|
|
end
|
|
|
|
end
|