Class: Retab::WorkflowVersionFieldDiff
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowVersionFieldDiff
- 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
-
#field ⇒ Object
Returns the value of attribute field.
-
#from_value ⇒ Object
Returns the value of attribute from_value.
-
#to_value ⇒ Object
Returns the value of attribute to_value.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowVersionFieldDiff
constructor
A new instance of WorkflowVersionFieldDiff.
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
#field ⇒ Object
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_value ⇒ Object
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_value ⇒ Object
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 |