Sha256: 85be8909e122a869bdbfb70a4aaa6065c72580f0122aa00aac07bd745f83ff52
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require 'duckface' module CleanArchitecture module Serializers class SuccessPayload implements_interface CleanArchitecture::Interfaces::SuccessPayload attr_reader :version def initialize(use_case_target, version) @use_case_target = use_case_target @version = version end def data_hash { type: @use_case_target.type_name, id: @use_case_target.identifier, attributes: @use_case_target.attribute_hash }.compact end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
clean-architecture-0.0.4 | lib/clean_architecture/serializers/success_payload.rb |
clean-architecture-0.0.3 | lib/clean_architecture/serializers/success_payload.rb |