Sha256: 361aa1165eacf7db94bcd4a2698f7b4650e3854dfc27fd65962739b496ae64c9

Contents?: true

Size: 307 Bytes

Versions: 4

Compression:

Stored size: 307 Bytes

Contents

module BloodContracts::Core
  # Represents failure in Sum data matching
  class SumPolicyFailure < PolicyFailure
    # Custom accessor for policy errors in case of Ext::Sum types composition
    def policy_errors
      @policy_errors ||= @context[:sum_errors].map(&:policy_errors).flatten
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blood_contracts-ext-0.1.3 lib/blood_contracts/core/sum_policy_failure.rb
blood_contracts-ext-0.1.2 lib/blood_contracts/core/sum_policy_failure.rb
blood_contracts-ext-0.1.1 lib/blood_contracts/core/sum_policy_failure.rb
blood_contracts-ext-0.1.0 lib/blood_contracts/core/sum_policy_failure.rb