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

PairType.initialize()   A

Complexity

Conditions 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 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