Module: Consumer::Controls::Poll

Defined in:
lib/consumer/controls/poll.rb

Class Method Summary collapse

Class Method Details

.exampleObject



4
5
6
7
8
9
# File 'lib/consumer/controls/poll.rb', line 4

def self.example
  ::Poll.build(
    interval_milliseconds: interval_milliseconds,
    timeout_milliseconds: timeout_milliseconds
  )
end

.interval_millisecondsObject



11
12
13
# File 'lib/consumer/controls/poll.rb', line 11

def self.interval_milliseconds
  1
end

.timeout_millisecondsObject



15
16
17
# File 'lib/consumer/controls/poll.rb', line 15

def self.timeout_milliseconds
  0
end