Class: Retab::WorkflowVersionFieldDiff

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_blocks/workflow_version_field_diff.rb

Constant Summary collapse

HASH_ATTRS =
{
  field: :field,
  from_value: :from_value,
  to_value: :to_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) ⇒ WorkflowVersionFieldDiff

Returns a new instance of WorkflowVersionFieldDiff.



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

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @field = hash[:field]
  @from_value = hash[:from_value]
  @to_value = hash[:to_value]
end

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



14
15
16
# File 'lib/retab/workflow_blocks/workflow_version_field_diff.rb', line 14

def field
  @field
end

#from_valueObject

Returns the value of attribute from_value.



14
15
16
# File 'lib/retab/workflow_blocks/workflow_version_field_diff.rb', line 14

def from_value
  @from_value
end

#to_valueObject

Returns the value of attribute to_value.



14
15
16
# File 'lib/retab/workflow_blocks/workflow_version_field_diff.rb', line 14

def to_value
  @to_value
end