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.



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

#deletedObject (readonly)

Returns the value of attribute deleted.



571
572
573
# File 'lib/hookbridge/types.rb', line 571

def deleted
  @deleted
end

#deleted_message_idsObject (readonly)

Returns the value of attribute deleted_message_ids.



571
572
573
# File 'lib/hookbridge/types.rb', line 571

def deleted_message_ids
  @deleted_message_ids
end

#errorObject (readonly)

Returns the value of attribute error.



571
572
573
# File 'lib/hookbridge/types.rb', line 571

def error
  @error
end