Class: LogCourier::PendingPayload

Inherits:
Object
  • Object
show all
Defined in:
lib/log-courier/client.rb

Overview

Describes a pending payload

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @ack_events = 0

  options.each do |k, v|
    raise ArgumentError unless self.respond_to?(k)
    instance_variable_set "@#{k}", v
  end
end

Instance Attribute Details

#ack_eventsObject

Returns the value of attribute ack_events.



33
34
35
# File 'lib/log-courier/client.rb', line 33

def ack_events
  @ack_events
end

#dataObject

Returns the value of attribute data.



36
37
38
# File 'lib/log-courier/client.rb', line 36

def data
  @data
end

#eventsObject

Returns the value of attribute events.



34
35
36
# File 'lib/log-courier/client.rb', line 34

def events
  @events
end

#nextObject

Returns the value of attribute next.



39
40
41
# File 'lib/log-courier/client.rb', line 39

def next
  @next
end

#nonceObject

Returns the value of attribute nonce.



35
36
37
# File 'lib/log-courier/client.rb', line 35

def nonce
  @nonce
end

#previousObject

Returns the value of attribute previous.



38
39
40
# File 'lib/log-courier/client.rb', line 38

def previous
  @previous
end