Completed
Push — dev ( ffd8f7...ec8098 )
by Fike
51s
created

PairType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A initialize() 0 6 1
1
# frozen_string_literal: true
2
3
require_relative '../concrete'
4
require_relative '../aux/pair'
5
6
module AMA
7
  module Entity
8
    class Mapper
9
      class Type
10
        module Hardwired
11
          # Pair class definition
12
          class PairType < Concrete
13
            def initialize
14
              super(Aux::Pair)
15
16
              attribute!(:left, parameter!(:L))
17
              attribute!(:right, parameter!(:R))
18
            end
19
          end
20
        end
21
      end
22
    end
23
  end
24
end
25