Completed
Push — dev ( 36eb97...6cb2fc )
by Fike
01:01
created

Enumerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A enumerate() 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
        # This special interface exists as a way for Mapper to non-directly
12
        # fetch all possible entity attributes
13
        class Enumerator < Interface
14
          # :nocov:
15
          # Enumerates entity attributes
16
          #
17
          # @param [Object] entity
18
          # @param [AMA::Entity::Mapper::Type] type
19
          # @param [AMA::Entity::Mapper::Context] context
20
          def enumerate(entity, type, context = nil)
21
            abstract_method
22
          end
23
          # :nocov:
24
        end
25
      end
26
    end
27
  end
28
end
29