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

EntityValidator.validate()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 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