enum PlaceOS::Model::Trigger::Conditions::Comparison::Operator

Defined in:

placeos-models/trigger/conditions.cr

Enum Members

And = 0
Equal = 1
ExclusiveOr = 2
GreaterThan = 3
GreaterThanOrEqual = 4
LessThan = 5
LessThanOrEqual = 6
NotEqual = 7
Or = 8

Instance Method Summary

Instance Method Detail

def and? #

[View source]
def compare(left : JSON::Any::Type, right : JSON::Any::Type) : Bool #

ameba:disable Metrics/CyclomaticComplexity


[View source]
def equal? #

[View source]
def exclusive_or? #

[View source]
def greater_than? #

[View source]
def greater_than_or_equal? #

[View source]
def less_than? #

[View source]
def less_than_or_equal? #

[View source]
def not_equal? #

[View source]
def or? #

[View source]