Class: Retab::BetweenCondition

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_tests/between_condition.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  lower: :lower,
  upper: :upper,
  inclusive: :inclusive
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ BetweenCondition

Returns a new instance of BetweenCondition.



21
22
23
24
25
26
27
# File 'lib/retab/workflow_tests/between_condition.rb', line 21

def initialize(json)
  hash = self.class.normalize(json)
  @kind = hash[:kind]
  @lower = hash[:lower]
  @upper = hash[:upper]
  @inclusive = hash[:inclusive]
end

Instance Attribute Details

#inclusiveObject

Returns the value of attribute inclusive.



15
16
17
# File 'lib/retab/workflow_tests/between_condition.rb', line 15

def inclusive
  @inclusive
end

#kindObject

Returns the value of attribute kind.



15
16
17
# File 'lib/retab/workflow_tests/between_condition.rb', line 15

def kind
  @kind
end

#lowerObject

Returns the value of attribute lower.



15
16
17
# File 'lib/retab/workflow_tests/between_condition.rb', line 15

def lower
  @lower
end

#upperObject

Returns the value of attribute upper.



15
16
17
# File 'lib/retab/workflow_tests/between_condition.rb', line 15

def upper
  @upper
end