Exception: Smith::Workflow::Claim::UnexpectedStatus

Inherits:
Error
  • Object
show all
Defined in:
lib/smith/workflow/claim.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



19
20
21
# File 'lib/smith/workflow/claim.rb', line 19

def id
  @id
end

#modelObject (readonly)

Returns the value of attribute model.



19
20
21
# File 'lib/smith/workflow/claim.rb', line 19

def model
  @model
end

#observed_statusObject (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