Class: LogCourier::PendingPayload
- Inherits:
-
Object
- Object
- LogCourier::PendingPayload
- Defined in:
- lib/log-courier/client.rb
Overview
Describes a pending payload
Instance Attribute Summary collapse
-
#ack_events ⇒ Object
Returns the value of attribute ack_events.
-
#data ⇒ Object
Returns the value of attribute data.
-
#events ⇒ Object
Returns the value of attribute events.
-
#next ⇒ Object
Returns the value of attribute next.
-
#nonce ⇒ Object
Returns the value of attribute nonce.
-
#previous ⇒ Object
Returns the value of attribute previous.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ PendingPayload
constructor
A new instance of PendingPayload.
Constructor Details
#initialize(options = {}) ⇒ PendingPayload
Returns a new instance of PendingPayload.
41 42 43 44 45 46 47 48 |
# File 'lib/log-courier/client.rb', line 41 def initialize( = {}) @ack_events = 0 .each do |k, v| raise ArgumentError unless self.respond_to?(k) instance_variable_set "@#{k}", v end end |
Instance Attribute Details
#ack_events ⇒ Object
Returns the value of attribute ack_events.
33 34 35 |
# File 'lib/log-courier/client.rb', line 33 def ack_events @ack_events end |
#data ⇒ Object
Returns the value of attribute data.
36 37 38 |
# File 'lib/log-courier/client.rb', line 36 def data @data end |
#events ⇒ Object
Returns the value of attribute events.
34 35 36 |
# File 'lib/log-courier/client.rb', line 34 def events @events end |
#next ⇒ Object
Returns the value of attribute next.
39 40 41 |
# File 'lib/log-courier/client.rb', line 39 def next @next end |
#nonce ⇒ Object
Returns the value of attribute nonce.
35 36 37 |
# File 'lib/log-courier/client.rb', line 35 def nonce @nonce end |
#previous ⇒ Object
Returns the value of attribute previous.
38 39 40 |
# File 'lib/log-courier/client.rb', line 38 def previous @previous end |