Class: AmountRangeFilter
Instance Method Summary
collapse
Methods inherited from JSONable
#from_json!, #to_h, #to_json
Instance Method Details
#Amount1=(amount1) ⇒ Object
4
5
6
|
# File 'lib/Entities/amount_range_filter.rb', line 4
def Amount1=(amount1)
@amount1 = amount1
end
|
#Amount2=(amount2) ⇒ Object
8
9
10
|
# File 'lib/Entities/amount_range_filter.rb', line 8
def Amount2=(amount2)
@amount2 = amount2
end
|
#Between(amountFrom, amountTo) ⇒ Object
37
38
39
40
41
42
43
|
# File 'lib/Entities/amount_range_filter.rb', line 37
def Between(amountFrom, amountTo)
self.ClearFilter
@amount1 = amountFrom
@amount2 = amountTo
@operation = "BETWEEN"
return self
end
|
#ClearFilter ⇒ Object
48
49
50
51
52
53
54
|
# File 'lib/Entities/amount_range_filter.rb', line 48
def ClearFilter
@amount1 = 0.00
@amount2 = 0.00
@operation = ""
end
|
#EqualTo(amount) ⇒ Object
30
31
32
33
34
35
|
# File 'lib/Entities/amount_range_filter.rb', line 30
def EqualTo(amount)
self.ClearFilter
@amount1 = amount
@operation = "EqualTo"
return self
end
|
#GreaterThan(amount) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/Entities/amount_range_filter.rb', line 16
def GreaterThan(amount)
self.ClearFilter
@amount1 = amount
@operation = "GREATER_THAN"
return self
end
|
#LessThan(amount) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/Entities/amount_range_filter.rb', line 23
def LessThan(amount)
self.ClearFilter
@amount1 = amount
@operation = "LESS_THAN"
return self
end
|
#Operation=(operation) ⇒ Object
12
13
14
|
# File 'lib/Entities/amount_range_filter.rb', line 12
def Operation=(operation)
@operation = operation
end
|