Class: Heller::FetchRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/heller/fetch_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#offsetObject (readonly)

Returns the value of attribute offset.



5
6
7
# File 'lib/heller/fetch_request.rb', line 5

def offset
  @offset
end

#partitionObject (readonly)

Returns the value of attribute partition.



5
6
7
# File 'lib/heller/fetch_request.rb', line 5

def partition
  @partition
end

#topicObject (readonly)

Returns the value of attribute topic.



5
6
7
# File 'lib/heller/fetch_request.rb', line 5

def topic
  @topic
end