Class: HookBridge::DeleteEventBatchResult
- Inherits:
-
Object
- Object
- HookBridge::DeleteEventBatchResult
- 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) ⇒ DeleteEventBatchResult
constructor
A new instance of DeleteEventBatchResult.
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_count ⇒ Object (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_count ⇒ Object (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_count ⇒ Object (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 |
#results ⇒ Object (readonly)
Returns the value of attribute results.
557 558 559 |
# File 'lib/hookbridge/types.rb', line 557 def results @results end |