Class: Retab::WorkflowTableFilterRule

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/tables/workflow_table_filter_rule.rb

Constant Summary collapse

HASH_ATTRS =
{
  column: :column,
  operator: :operator,
  value: :value
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ WorkflowTableFilterRule

Returns a new instance of WorkflowTableFilterRule.



20
21
22
23
24
25
26
# File 'lib/retab/tables/workflow_table_filter_rule.rb', line 20

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @column = hash[:column]
  @operator = hash[:operator]
  @value = hash[:value]
end

Instance Attribute Details

#columnObject

Returns the value of attribute column.



14
15
16
# File 'lib/retab/tables/workflow_table_filter_rule.rb', line 14

def column
  @column
end

#operatorObject

Returns the value of attribute operator.



14
15
16
# File 'lib/retab/tables/workflow_table_filter_rule.rb', line 14

def operator
  @operator
end

#valueObject

Returns the value of attribute value.



14
15
16
# File 'lib/retab/tables/workflow_table_filter_rule.rb', line 14

def value
  @value
end