Sha256: 6c820c456fcf5916a0b60f808a6891360812e6044b23f7b5154aaf48f8f51d66

Contents?: true

Size: 652 Bytes

Versions: 7

Compression:

Stored size: 652 Bytes

Contents

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

          property :id, 
                   type: Integer

          property :application_id,
                   type: Integer

          property :account,
                   as: :user,
                   class: OpenStax::Accounts::Account,
                   decorator: AccountRepresenter

          property :unread_updates,
                   type: Integer

          property :default_contact_info_id,
                   type: Integer

        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openstax_accounts-4.1.1 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-4.1.0 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-4.0.0 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-3.1.1 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-3.1.0 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-3.0.0 app/representers/openstax/accounts/api/v1/application_account_representer.rb
openstax_accounts-2.0.0 app/representers/openstax/accounts/api/v1/application_account_representer.rb