Exception: PlanMyStuff::StaleObjectError
- Defined in:
- lib/plan_my_stuff/errors.rb
Overview
Raised when an object has been modified remotely since it was loaded
Instance Attribute Summary collapse
- #local_updated_at ⇒ Time? readonly
- #remote_updated_at ⇒ Time? readonly
Instance Method Summary collapse
-
#initialize(message = nil, local_updated_at: nil, remote_updated_at: nil) ⇒ StaleObjectError
constructor
A new instance of StaleObjectError.
Constructor Details
#initialize(message = nil, local_updated_at: nil, remote_updated_at: nil) ⇒ StaleObjectError
Returns a new instance of StaleObjectError.
62 63 64 65 66 |
# File 'lib/plan_my_stuff/errors.rb', line 62 def initialize( = nil, local_updated_at: nil, remote_updated_at: nil) @local_updated_at = local_updated_at @remote_updated_at = remote_updated_at super() end |
Instance Attribute Details
#local_updated_at ⇒ Time? (readonly)
53 54 55 |
# File 'lib/plan_my_stuff/errors.rb', line 53 def local_updated_at @local_updated_at end |
#remote_updated_at ⇒ Time? (readonly)
56 57 58 |
# File 'lib/plan_my_stuff/errors.rb', line 56 def remote_updated_at @remote_updated_at end |