Class: KafkaSyrup::Protocol::MetadataRequest
- Defined in:
- lib/kafka_syrup/protocol/metadata_request.rb
Instance Attribute Summary collapse
-
#topics ⇒ Object
Returns the value of attribute topics.
Attributes inherited from Request
Instance Method Summary collapse
- #encode ⇒ Object
-
#initialize(*args) ⇒ MetadataRequest
constructor
A new instance of MetadataRequest.
Methods inherited from Request
Methods inherited from Base
#==, #config, #decode, #defaults
Methods included from Utils
Constructor Details
#initialize(*args) ⇒ MetadataRequest
Returns a new instance of MetadataRequest.
8 9 10 11 12 13 14 |
# File 'lib/kafka_syrup/protocol/metadata_request.rb', line 8 def initialize(*args) opts = args.last.is_a?(Hash) ? args.pop : {} load_args(opts) self.topics = args end |
Instance Attribute Details
#topics ⇒ Object
Returns the value of attribute topics.
6 7 8 |
# File 'lib/kafka_syrup/protocol/metadata_request.rb', line 6 def topics @topics end |