Class: HookBridge::DeleteBatchResult
- Inherits:
-
Object
- Object
- HookBridge::DeleteBatchResult
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#already_deleted_count ⇒ Object
readonly
Returns the value of attribute already_deleted_count.
-
#deleted_count ⇒ Object
readonly
Returns the value of attribute deleted_count.
-
#not_found_count ⇒ Object
readonly
Returns the value of attribute not_found_count.
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(data) ⇒ DeleteBatchResult
constructor
A new instance of DeleteBatchResult.
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_count ⇒ Object (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_count ⇒ Object (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_count ⇒ Object (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 |
#results ⇒ Object (readonly)
Returns the value of attribute results.
540 541 542 |
# File 'lib/hookbridge/types.rb', line 540 def results @results end |