Class: HookBridge::DeleteAllResult
- Inherits:
-
Object
- Object
- HookBridge::DeleteAllResult
- Defined in:
- lib/hookbridge/types.rb
Instance Attribute Summary collapse
-
#deleted ⇒ Object
readonly
Returns the value of attribute deleted.
-
#deleted_message_ids ⇒ Object
readonly
Returns the value of attribute deleted_message_ids.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(response) ⇒ DeleteAllResult
constructor
A new instance of DeleteAllResult.
Constructor Details
#initialize(response) ⇒ DeleteAllResult
Returns a new instance of DeleteAllResult.
573 574 575 576 577 578 579 |
# File 'lib/hookbridge/types.rb', line 573 def initialize(response) data = response["data"] || {} @deleted = data["deleted"] @deleted_message_ids = data["deleted_message_ids"] || [] err = response["error"] @error = err ? DeletePartialError.new(err) : nil end |
Instance Attribute Details
#deleted ⇒ Object (readonly)
Returns the value of attribute deleted.
571 572 573 |
# File 'lib/hookbridge/types.rb', line 571 def deleted @deleted end |
#deleted_message_ids ⇒ Object (readonly)
Returns the value of attribute deleted_message_ids.
571 572 573 |
# File 'lib/hookbridge/types.rb', line 571 def @deleted_message_ids end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
571 572 573 |
# File 'lib/hookbridge/types.rb', line 571 def error @error end |