Class: Rdkafka::Admin::CreateTopicReport

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

Direct Known Subclasses

CreatePartitionsReport

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_string, result_name) ⇒ CreateTopicReport

Returns a new instance of CreateTopicReport.



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

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

Instance Attribute Details

#error_stringString (readonly)

Any error message generated from the CreateTopic

Returns:

  • (String)


8
9
10
# File 'lib/rdkafka/admin/create_topic_report.rb', line 8

def error_string
  @error_string
end

#result_nameString (readonly)

The name of the topic created

Returns:

  • (String)


12
13
14
# File 'lib/rdkafka/admin/create_topic_report.rb', line 12

def result_name
  @result_name
end