Class: Heller::OffsetResponse
- Inherits:
-
Object
- Object
- Heller::OffsetResponse
- Defined in:
- lib/heller/offset_response.rb
Instance Method Summary collapse
- #error(topic, partition) ⇒ Object
- #error? ⇒ Boolean
-
#initialize(underlying) ⇒ OffsetResponse
constructor
A new instance of OffsetResponse.
- #offsets(topic, partition) ⇒ Object
Constructor Details
#initialize(underlying) ⇒ OffsetResponse
Returns a new instance of OffsetResponse.
5 6 7 |
# File 'lib/heller/offset_response.rb', line 5 def initialize() @underlying = end |
Instance Method Details
#error(topic, partition) ⇒ Object
17 18 19 |
# File 'lib/heller/offset_response.rb', line 17 def error(topic, partition) convert_error { @underlying.error_code(topic, partition) } end |
#error? ⇒ Boolean
13 14 15 |
# File 'lib/heller/offset_response.rb', line 13 def error? @underlying.has_error? end |
#offsets(topic, partition) ⇒ Object
9 10 11 |
# File 'lib/heller/offset_response.rb', line 9 def offsets(topic, partition) convert_error { @underlying.offsets(topic, partition).to_a } end |