Class: Identisure::PollOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/identisure/poll_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interval: 2, timeout: 300) ⇒ PollOptions

Returns a new instance of PollOptions.



7
8
9
10
# File 'lib/identisure/poll_options.rb', line 7

def initialize(interval: 2, timeout: 300)
  @interval = interval
  @timeout = timeout
end

Instance Attribute Details

#interval ⇒ Object (readonly)

Returns the value of attribute interval.



5
6
7
# File 'lib/identisure/poll_options.rb', line 5

def interval
  @interval
end

#timeout ⇒ Object (readonly)

Returns the value of attribute timeout.



5
6
7
# File 'lib/identisure/poll_options.rb', line 5

def timeout
  @timeout
end