Completed
Push — master ( 9d90ba...7d87fd )
by P.R.
01:17
created

SimpleCondition.__init__()   A

Complexity

Conditions 1

Size

Total Lines 20

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 20
rs 9.4285
cc 1
1
"""
2
ETLT
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from etlt.condition.Condition import Condition
9
10
11
class SimpleCondition(Condition):
12
    """
13
    A simple condition matches a single field in the row against an expression.
14
    """
15
    # ------------------------------------------------------------------------------------------------------------------
16
    def __init__(self, field, expression):
17
        """
18
        Object contructor.
19
20
        :param str field: The name of the field in the row that must be match against the expression.
21
        :param str expression: The expression.
22
        """
23
        self._field = field
24
        """
25
        The name of the field in the row that must be match against the glob.
26
27
        :type str:
28
        """
29
30
        self._expression = expression
31
        """
32
        The expression.
33
34
        :type str:
35
        """
36
37
# ----------------------------------------------------------------------------------------------------------------------
38