Class: Rounders::Rounder
- Inherits:
-
Object
- Object
- Rounders::Rounder
- Defined in:
- lib/rounders/rounder.rb
Constant Summary collapse
- DEFAULT_ENV =
'development'.freeze
- DEFAULT_INTERVAL =
10
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Rounder
constructor
A new instance of Rounder.
- #start ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Rounder
Returns a new instance of Rounder.
8 9 10 |
# File 'lib/rounders/rounder.rb', line 8 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/rounders/rounder.rb', line 6 def @options end |
Instance Method Details
#start ⇒ Object
12 13 14 15 |
# File 'lib/rounders/rounder.rb', line 12 def start setup polling end |
#store ⇒ Object
17 18 19 |
# File 'lib/rounders/rounder.rb', line 17 def store @store ||= Rounders.stores[Rounders::Application.config.store].new end |