Sha256: 3c4520f5d261bedb905554361e0d957815da85032fff5a069c03d5da43cdebc6
Contents?: true
Size: 976 Bytes
Versions: 3
Compression:
Stored size: 976 Bytes
Contents
require_relative '../Helpers/jso_nable' class AmountRangeFilter < JSONable def Amount1=(amount1) #double @amount1 = amount1 end def Amount2=(amount2) #double @amount2 = amount2 end def Operation=(operation) @operation = operation end def GreaterThan(amount) self.ClearFilter @amount1 = amount @operation = "GREATER_THAN" return self end def LessThan(amount) self.ClearFilter @amount1 = amount @operation = "LESS_THAN" return self end def EqualTo(amount) self.ClearFilter @amount1 = amount @operation = "EqualTo" return self end def Between(amountFrom, amountTo) self.ClearFilter @amount1 = amountFrom @amount2 = amountTo @operation = "BETWEEN" return self end #private def ClearFilter @amount1 = 0.00 @amount2 = 0.00 @operation = "" end #private double Amount1 = 0; #private double Amount2 = 0; #private String Operation = ""; end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
CroemincRubyGem-0.1.2 | lib/Entities/amount_range_filter.rb |
MetropagoRubyGem-0.1.1 | lib/Entities/amount_range_filter.rb |
MetropagoRubyGem-0.1.0 | lib/Entities/amount_range_filter.rb |