Completed
Push — dev ( 6cb2fc...405831 )
by Fike
58s
created

EntityValidator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validate() 0 3 1
1
# frozen_string_literal: true
2
3
# rubocop:disable Lint/UnusedMethodArgument
4
5
require_relative 'interface'
6
7
module AMA
8
  module Entity
9
    class Mapper
10
      module API
11
        # Custom validator for entity
12
        class EntityValidator < Interface
13
          # :nocov:
14
          # @param [Object] entity
15
          # @param [Mapper::Type::Concrete] type
16
          # @param [Mapper::Context] context
17
          # @return [Array<Array<Attribute, String, Segment>] List of
18
          #   violations, combined with attribute and segment
19
          def validate(entity, type, context)
20
            abstract_method
21
          end
22
          # :nocov:
23
        end
24
      end
25
    end
26
  end
27
end
28