Class: Rdkafka::Admin::DeleteAclReport

Inherits:
Object
  • Object
show all
Defined in:
lib/rdkafka/admin/delete_acl_report.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(matching_acls:, matching_acls_count:) ⇒ DeleteAclReport

Returns a new instance of DeleteAclReport.



11
12
13
14
15
16
17
18
19
20
# File 'lib/rdkafka/admin/delete_acl_report.rb', line 11

def initialize(matching_acls:, matching_acls_count:)
  @deleted_acls=[]
  if matching_acls != FFI::Pointer::NULL
    acl_binding_result_pointers  = matching_acls.read_array_of_pointer(matching_acls_count)
    (1..matching_acls_count).map do |matching_acl_index|
      acl_binding_result = AclBindingResult.new(acl_binding_result_pointers[matching_acl_index - 1])
      @deleted_acls << acl_binding_result
    end
  end
end

Instance Attribute Details

#deleted_aclsRdkafka::Bindings::AclBindingResult (readonly)

deleted acls

Returns:

  • (Rdkafka::Bindings::AclBindingResult)


9
10
11
# File 'lib/rdkafka/admin/delete_acl_report.rb', line 9

def deleted_acls
  @deleted_acls
end