Class: Dunlop::OverdueHandling::WorkflowStepBaseDate
- Inherits:
-
Object
- Object
- Dunlop::OverdueHandling::WorkflowStepBaseDate
- Defined in:
- app/services/dunlop/overdue_handling.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#workflow_step ⇒ Object
readonly
Returns the value of attribute workflow_step.
Instance Method Summary collapse
- #field ⇒ Object
-
#initialize(workflow_step, config) ⇒ WorkflowStepBaseDate
constructor
A new instance of WorkflowStepBaseDate.
- #is_nested? ⇒ Boolean
- #key ⇒ Object
Constructor Details
#initialize(workflow_step, config) ⇒ WorkflowStepBaseDate
Returns a new instance of WorkflowStepBaseDate.
108 109 110 |
# File 'app/services/dunlop/overdue_handling.rb', line 108 def initialize(workflow_step, config) @workflow_step, @config = workflow_step, config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
107 108 109 |
# File 'app/services/dunlop/overdue_handling.rb', line 107 def config @config end |
#workflow_step ⇒ Object (readonly)
Returns the value of attribute workflow_step.
107 108 109 |
# File 'app/services/dunlop/overdue_handling.rb', line 107 def workflow_step @workflow_step end |
Instance Method Details
#field ⇒ Object
120 121 122 |
# File 'app/services/dunlop/overdue_handling.rb', line 120 def field is_nested? ? config.values.first : config end |
#is_nested? ⇒ Boolean
112 113 114 |
# File 'app/services/dunlop/overdue_handling.rb', line 112 def is_nested? config.is_a?(Hash) end |
#key ⇒ Object
116 117 118 |
# File 'app/services/dunlop/overdue_handling.rb', line 116 def key is_nested? ? config.keys.first : config end |