Class: HookBridge::DeleteAllResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deletedObject (readonly)

Returns the value of attribute deleted.



559
560
561
# File 'lib/hookbridge/types.rb', line 559

def deleted
  @deleted
end

#deleted_message_idsObject (readonly)

Returns the value of attribute deleted_message_ids.



559
560
561
# File 'lib/hookbridge/types.rb', line 559

def deleted_message_ids
  @deleted_message_ids
end

#errorObject (readonly)

Returns the value of attribute error.



559
560
561
# File 'lib/hookbridge/types.rb', line 559

def error
  @error
end