Sha256: 3aa97e18985a0a1902d82c6bdc5661e9d6c6173b450335badc0b4d403139638d

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

# frozen_string_literal: true
require 'jsonapi/store'
require 'jsonapi/store/identifier'

module JSONAPI
  class Store
    # Basic entity implementation for {JSONAPI::Store}
    class Entity < Identifier
      constructor_type :strict_with_defaults

      # @return [Hash] attributes of the entity
      attribute :attributes, Types::Optional::Hash
      # @return [Hash] relationships of the entity
      attribute :relationships, Types::Optional::Hash
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jsonapi-store-0.1.0 lib/jsonapi/store/entity.rb