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.
561 562 563 564 565 566 567 |
# File 'lib/hookbridge/types.rb', line 561 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.
559 560 561 |
# File 'lib/hookbridge/types.rb', line 559 def deleted @deleted end |
#deleted_message_ids ⇒ Object (readonly)
Returns the value of attribute deleted_message_ids.
559 560 561 |
# File 'lib/hookbridge/types.rb', line 559 def @deleted_message_ids end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
559 560 561 |
# File 'lib/hookbridge/types.rb', line 559 def error @error end |