Sha256: d399cba1a03a4cb365e82ccbde6cf5e8ce25f734b0f7744ac075dbed6d5ea8d0

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

module OpenStax
  module Accounts
    module Api
      module V1
        class AccountRepresenter < Roar::Decorator
          include Roar::Representer::JSON

          property :openstax_uid,
                   as: :id,
                   type: Integer

          property :username,
                   type: String

          property :first_name,
                   type: String

          property :last_name,
                   type: String

          property :full_name,
                   type: String

          property :title,
                   type: String

        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openstax_accounts-3.1.1 app/representers/openstax/accounts/api/v1/account_representer.rb
openstax_accounts-3.1.0 app/representers/openstax/accounts/api/v1/account_representer.rb
openstax_accounts-3.0.0 app/representers/openstax/accounts/api/v1/account_representer.rb
openstax_accounts-2.0.0 app/representers/openstax/accounts/api/v1/account_representer.rb