Sha256: 02acab339e26e044baab1777f1bbfcc615d5f638b51fc707220917d05c8d4de2

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

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

          property :num_matching_accounts,
                   as: :num_matching_users,
                   type: Integer

          property :page,
                   type: Integer

          property :per_page,
                   type: Integer

          property :order_by,
                   type: String

          collection :accounts,
                     as: :users,
                     class: Account,
                     decorator: AccountRepresenter

        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_search_representer.rb
openstax_accounts-3.1.0 app/representers/openstax/accounts/api/v1/account_search_representer.rb
openstax_accounts-3.0.0 app/representers/openstax/accounts/api/v1/account_search_representer.rb
openstax_accounts-2.0.0 app/representers/openstax/accounts/api/v1/account_search_representer.rb