Class: Identisure::PollOptions
- Inherits:
-
Object
- Object
- Identisure::PollOptions
- Defined in:
- lib/identisure/poll_options.rb
Instance Attribute Summary collapse
-
#interval ⇒ Object
readonly
Returns the value of attribute interval.
-
#timeout ⇒ Object
readonly
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#initialize(interval: 2, timeout: 300) ⇒ PollOptions
constructor
A new instance of PollOptions.
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 |