Class: HookBridge::DeleteEventBatchResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DeleteEventBatchResult

Returns a new instance of DeleteEventBatchResult.



547
548
549
550
551
552
# File 'lib/hookbridge/types.rb', line 547

def initialize(data)
  @results = (data["results"] || []).map { |item| DeleteEventBatchItemResult.new(item) }
  @deleted_count = data["deleted_count"]
  @already_deleted_count = data["already_deleted_count"]
  @not_found_count = data["not_found_count"]
end

Instance Attribute Details

#already_deleted_countObject (readonly)

Returns the value of attribute already_deleted_count.



545
546
547
# File 'lib/hookbridge/types.rb', line 545

def already_deleted_count
  @already_deleted_count
end

#deleted_countObject (readonly)

Returns the value of attribute deleted_count.



545
546
547
# File 'lib/hookbridge/types.rb', line 545

def deleted_count
  @deleted_count
end

#not_found_countObject (readonly)

Returns the value of attribute not_found_count.



545
546
547
# File 'lib/hookbridge/types.rb', line 545

def not_found_count
  @not_found_count
end

#resultsObject (readonly)

Returns the value of attribute results.



545
546
547
# File 'lib/hookbridge/types.rb', line 545

def results
  @results
end