Class: Rdkafka::Admin::CreateAclReport

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rdkafka_response:, rdkafka_response_string:) ⇒ CreateAclReport

Returns a new instance of CreateAclReport.



16
17
18
19
20
21
# File 'lib/rdkafka/admin/create_acl_report.rb', line 16

def initialize(rdkafka_response:, rdkafka_response_string:)
  @rdkafka_response = rdkafka_response
  if rdkafka_response_string != FFI::Pointer::NULL
    @rdkafka_response_string = rdkafka_response_string.read_string
  end
end

Instance Attribute Details

#rdkafka_responseInteger (readonly)

Upon successful creation of Acl RD_KAFKA_RESP_ERR_NO_ERROR - 0 is returned as rdkafka_response

Returns:

  • (Integer)


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

def rdkafka_response
  @rdkafka_response
end

#rdkafka_response_stringString (readonly)

Upon successful creation of Acl empty string will be returned as rdkafka_response_string

Returns:

  • (String)


14
15
16
# File 'lib/rdkafka/admin/create_acl_report.rb', line 14

def rdkafka_response_string
  @rdkafka_response_string
end