Exception: Kvom::WriteConflict

Inherits:
Conflict
  • Object
show all
Defined in:
lib/kvom/write_conflict.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#causeObject

Returns the value of attribute cause.



5
6
7
# File 'lib/kvom/write_conflict.rb', line 5

def cause
  @cause
end

Class Method Details

.wrap(cause) ⇒ Object



7
8
9
10
11
# File 'lib/kvom/write_conflict.rb', line 7

def self.wrap(cause)
  new.tap do
    new.cause = cause
  end
end