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

SimpleCondition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 20 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