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.



559
560
561
562
563
564
# File 'lib/hookbridge/types.rb', line 559

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.



557
558
559
# File 'lib/hookbridge/types.rb', line 557

def already_deleted_count
  @already_deleted_count
end

#deleted_countObject (readonly)

Returns the value of attribute deleted_count.



557
558
559
# File 'lib/hookbridge/types.rb', line 557

def deleted_count
  @deleted_count
end

#not_found_countObject (readonly)

Returns the value of attribute not_found_count.



557
558
559
# File 'lib/hookbridge/types.rb', line 557

def not_found_count
  @not_found_count
end

#resultsObject (readonly)

Returns the value of attribute results.



557
558
559
# File 'lib/hookbridge/types.rb', line 557

def results
  @results
end