Sha256: a3eb17a6b9e2edf6db3da0b4fb7bd13d2483b609bdf80ec9d46136ef8d4d5301

Contents?: true

Size: 350 Bytes

Versions: 23

Compression:

Stored size: 350 Bytes

Contents

if member.is_a?(MnoEnterprise::User)
  json.id member.id
  json.entity 'User'
  json.name member.name
  json.surname member.surname
  json.email member.email
  json.role member.role(organization)
elsif member.is_a?(MnoEnterprise::OrgInvite)
  json.id member.id
  json.entity 'OrgInvite'
  json.email member.user_email
  json.role member.user_role
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.1 app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder
mno-enterprise-api-3.0.0 app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder
mno-enterprise-api-2.0.0 app/views/mno_enterprise/jpi/v1/organizations/_member.json.jbuilder