Class: Rdkafka::Admin::ConfigResourceBindingResult

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

Overview

A simple binding that represents the requested config resource

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config_resource_ptr) ⇒ ConfigResourceBindingResult

Returns a new instance of ConfigResourceBindingResult.



9
10
11
12
13
14
15
# File 'lib/rdkafka/admin/config_resource_binding_result.rb', line 9

def initialize(config_resource_ptr)
  ffi_binding = Bindings::ConfigResource.new(config_resource_ptr)

  @name = ffi_binding[:name]
  @type = ffi_binding[:type]
  @configs = []
end

Instance Attribute Details

#configsObject (readonly)

Returns the value of attribute configs.



7
8
9
# File 'lib/rdkafka/admin/config_resource_binding_result.rb', line 7

def configs
  @configs
end

#configs_countObject (readonly)

Returns the value of attribute configs_count.



7
8
9
# File 'lib/rdkafka/admin/config_resource_binding_result.rb', line 7

def configs_count
  @configs_count
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/rdkafka/admin/config_resource_binding_result.rb', line 7

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/rdkafka/admin/config_resource_binding_result.rb', line 7

def type
  @type
end