Sha256: b5f56b1cd67fd76ce131f8e88396221a0d203e236a7dd23303ec5405a899724b

Contents?: true

Size: 586 Bytes

Versions: 8

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

require_relative '../user/serializer'
require_relative '../marketplace/store/serializer'

module Desertcart
  class AuthenticationToken
    class Serializer < Desertcart::Serializer
      id
      attribute :token
      attribute :expires_at

      references_one 'user',
                     resource_attribute: :user,
                     serializer: Desertcart::User::Serializer
      references_one 'store',
                     resource_attribute: :store,
                     serializer: Desertcart::Marketplace::Store::Serializer
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
desertcart-1.2.0 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.5 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.4 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.3 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.2 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.1 lib/desertcart/authentication_token/serializer.rb
desertcart-1.1.0 lib/desertcart/authentication_token/serializer.rb
desertcart-1.0.0 lib/desertcart/authentication_token/serializer.rb