Class: HookBridge::ReplayBatchMessagesResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/hookbridge/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ReplayBatchMessagesResponse

Returns a new instance of ReplayBatchMessagesResponse.



212
213
214
215
216
217
# File 'lib/hookbridge/types.rb', line 212

def initialize(data)
  @replayed = data["replayed"]
  @failed = data["failed"]
  @stuck = data["stuck"]
  @results = (data["results"] || []).map { |entry| ReplayBatchResult.new(entry) }
end

Instance Attribute Details

#failedObject (readonly)

Returns the value of attribute failed.



210
211
212
# File 'lib/hookbridge/types.rb', line 210

def failed
  @failed
end

#replayedObject (readonly)

Returns the value of attribute replayed.



210
211
212
# File 'lib/hookbridge/types.rb', line 210

def replayed
  @replayed
end

#resultsObject (readonly)

Returns the value of attribute results.



210
211
212
# File 'lib/hookbridge/types.rb', line 210

def results
  @results
end

#stuckObject (readonly)

Returns the value of attribute stuck.



210
211
212
# File 'lib/hookbridge/types.rb', line 210

def stuck
  @stuck
end