Class: Heller::FetchRequest
- Inherits:
-
Object
- Object
- Heller::FetchRequest
- Defined in:
- lib/heller/fetch_request.rb
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(*args) ⇒ FetchRequest
constructor
A new instance of FetchRequest.
Constructor Details
#initialize(*args) ⇒ FetchRequest
Returns a new instance of FetchRequest.
7 8 9 |
# File 'lib/heller/fetch_request.rb', line 7 def initialize(*args) @topic, @partition, @offset = *args end |
Instance Attribute Details
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
5 6 7 |
# File 'lib/heller/fetch_request.rb', line 5 def offset @offset end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
5 6 7 |
# File 'lib/heller/fetch_request.rb', line 5 def partition @partition end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
5 6 7 |
# File 'lib/heller/fetch_request.rb', line 5 def topic @topic end |