Sha256: f1651c4710cdb3a8619c6e0fedc6eed64a5f55a74105f3200fcd71963974ff42

Contents?: true

Size: 166 Bytes

Versions: 6

Compression:

Stored size: 166 Bytes

Contents

# frozen_string_literal: true

class UserSerializer
  include FastJsonapi::ObjectSerializer

  has_many :blog_posts

  attributes :first_name, :last_name, :email
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape_fast_jsonapi-0.2.6 spec/support/serializers/user_serializer.rb
grape_fast_jsonapi-0.2.5 spec/support/serializers/user_serializer.rb
grape_fast_jsonapi-0.2.4 spec/support/serializers/user_serializer.rb
grape_fast_jsonapi-0.2.3 spec/support/serializers/user_serializer.rb
grape_fast_jsonapi-0.2.1 spec/support/serializers/user_serializer.rb
grape_fast_jsonapi-0.2.0 spec/support/serializers/user_serializer.rb