Sha256: 703b91834d46f2db84971cadda7a44f1ee0e7c1668f324b5ac9e8084d3a7ae71

Contents?: true

Size: 767 Bytes

Versions: 2

Compression:

Stored size: 767 Bytes

Contents

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

          property :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

# TODO: Not yet implemented in this gem
#          collection :contact_infos,
#                     class: OpenStax::Accounts::ContactInfo,
#                     decorator: ContactInfoRepresenter

        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
openstax_accounts-0.3.0 app/representers/openstax/accounts/api/v1/user_representer.rb
openstax_accounts-0.3 app/representers/openstax/accounts/api/v1/user_representer.rb