Class: HookBridge::DeleteBatchResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DeleteBatchResult

Returns a new instance of DeleteBatchResult.



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

def initialize(data)
  @results = (data["results"] || []).map { |item| DeleteBatchItemResult.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.



540
541
542
# File 'lib/hookbridge/types.rb', line 540

def already_deleted_count
  @already_deleted_count
end

#deleted_countObject (readonly)

Returns the value of attribute deleted_count.



540
541
542
# File 'lib/hookbridge/types.rb', line 540

def deleted_count
  @deleted_count
end

#not_found_countObject (readonly)

Returns the value of attribute not_found_count.



540
541
542
# File 'lib/hookbridge/types.rb', line 540

def not_found_count
  @not_found_count
end

#resultsObject (readonly)

Returns the value of attribute results.



540
541
542
# File 'lib/hookbridge/types.rb', line 540

def results
  @results
end