Class: Rdkafka::Admin::DeleteAclReport
- Inherits:
-
Object
- Object
- Rdkafka::Admin::DeleteAclReport
- Defined in:
- lib/rdkafka/admin/delete_acl_report.rb
Instance Attribute Summary collapse
-
#deleted_acls ⇒ Rdkafka::Bindings::AclBindingResult
readonly
deleted acls.
Instance Method Summary collapse
-
#initialize(matching_acls:, matching_acls_count:) ⇒ DeleteAclReport
constructor
A new instance of DeleteAclReport.
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_acls ⇒ Rdkafka::Bindings::AclBindingResult (readonly)
deleted acls
9 10 11 |
# File 'lib/rdkafka/admin/delete_acl_report.rb', line 9 def deleted_acls @deleted_acls end |