Exception: Smith::Workflow::Claim::UnexpectedStatus
- Defined in:
- lib/smith/workflow/claim.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#observed_status ⇒ Object
readonly
Returns the value of attribute observed_status.
Instance Method Summary collapse
-
#initialize(model:, id:, observed_status:) ⇒ UnexpectedStatus
constructor
A new instance of UnexpectedStatus.
Constructor Details
#initialize(model:, id:, observed_status:) ⇒ UnexpectedStatus
Returns a new instance of UnexpectedStatus.
21 22 23 24 25 26 |
# File 'lib/smith/workflow/claim.rb', line 21 def initialize(model:, id:, observed_status:) @model = model @id = id @observed_status = observed_status super("unexpected status #{observed_status.inspect} for #{model.name}##{id}") end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
19 20 21 |
# File 'lib/smith/workflow/claim.rb', line 19 def id @id end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
19 20 21 |
# File 'lib/smith/workflow/claim.rb', line 19 def model @model end |
#observed_status ⇒ Object (readonly)
Returns the value of attribute observed_status.
19 20 21 |
# File 'lib/smith/workflow/claim.rb', line 19 def observed_status @observed_status end |