Sha256: 9a05cc9a675d069c1db7130d9e6799a60891739c32378a1d6bd8d68fb6153de4

Contents?: true

Size: 206 Bytes

Versions: 4

Compression:

Stored size: 206 Bytes

Contents

module Ecom
  module Core
    class UserLookupSerializer < ActiveModel::Serializer
      attributes :id, :name

      def name
        "#{object.first_name} #{object.last_name}"
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecom_core-1.3.14 app/serializers/ecom/core/user_lookup_serializer.rb
ecom_core-1.3.13 app/serializers/ecom/core/user_lookup_serializer.rb
ecom_core-1.3.12 app/serializers/ecom/core/user_lookup_serializer.rb
ecom_core-1.3.11 app/serializers/ecom/core/user_lookup_serializer.rb