Class: OdataDuty::FilterPredicate

Inherits:
Object
  • Object
show all
Defined in:
lib/odata_duty/filter_predicate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property_name:, operation:, value:) ⇒ FilterPredicate

Returns a new instance of FilterPredicate.



5
6
7
8
9
10
# File 'lib/odata_duty/filter_predicate.rb', line 5

def initialize(property_name:, operation:, value:)
  @property_name = property_name
  @operation = operation
  @value = value
  freeze
end

Instance Attribute Details

#operationObject (readonly)

Returns the value of attribute operation.



3
4
5
# File 'lib/odata_duty/filter_predicate.rb', line 3

def operation
  @operation
end

#property_nameObject (readonly)

Returns the value of attribute property_name.



3
4
5
# File 'lib/odata_duty/filter_predicate.rb', line 3

def property_name
  @property_name
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/odata_duty/filter_predicate.rb', line 3

def value
  @value
end