Class: CouchBum::BingeContext
- Inherits:
-
Object
- Object
- CouchBum::BingeContext
- Defined in:
- lib/couch_bum/couch_bum.rb
Overview
Context under which the callback passed to binge_changes is executed.
Instance Attribute Summary collapse
-
#current_seq ⇒ Object
Returns the value of attribute current_seq.
Instance Method Summary collapse
- #choke ⇒ Object
-
#initialize(changes) ⇒ BingeContext
constructor
A new instance of BingeContext.
- #last_seq ⇒ Object
- #pending ⇒ Object
Constructor Details
#initialize(changes) ⇒ BingeContext
Returns a new instance of BingeContext.
54 55 56 |
# File 'lib/couch_bum/couch_bum.rb', line 54 def initialize(changes) @changes = changes end |
Instance Attribute Details
#current_seq ⇒ Object
Returns the value of attribute current_seq.
52 53 54 |
# File 'lib/couch_bum/couch_bum.rb', line 52 def current_seq @current_seq end |
Instance Method Details
#choke ⇒ Object
58 59 60 |
# File 'lib/couch_bum/couch_bum.rb', line 58 def choke throw :choke end |
#last_seq ⇒ Object
62 63 64 |
# File 'lib/couch_bum/couch_bum.rb', line 62 def last_seq @changes['last_seq'] end |
#pending ⇒ Object
66 67 68 |
# File 'lib/couch_bum/couch_bum.rb', line 66 def pending @changes['pending'] end |