Sha256: cd3971a8b24427212fe58e5997be4014782cbd5b510a4a5e104d5fb22b029b82

Contents?: true

Size: 596 Bytes

Versions: 3

Compression:

Stored size: 596 Bytes

Contents

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

          property :num_matching_users,
                   type: Integer

          property :page,
                   type: Integer

          property :per_page,
                   type: Integer

          property :order_by,
                   type: String


          collection :users,
                     class: OpenStax::Accounts::User,
                     decorator: UserRepresenter

        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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