Sha256: 81af289945bf18bd2d803e8ce9c211d99de4f15b83731edc46db3435c4229b71
Contents?: true
Size: 910 Bytes
Versions: 17
Compression:
Stored size: 910 Bytes
Contents
module OpenStax module Accounts module Api module V1 class GroupUserRepresenter < Roar::Decorator # This representer is used to communicate with Accounts # and so must allow read/write on all properties # Do not use it in create/update APIs! include Roar::JSON property :group_id, type: Integer, schema_info: { required: true, description: "The associated group's unique ID number" } nested :user do property :user_id, as: :id, type: Integer, schema_info: { required: true, description: "The associated user's unique ID number" } end end end end end end
Version data entries
17 entries across 17 versions & 1 rubygems