Class: Rounders::Rounder

Inherits:
Object
  • Object
show all
Defined in:
lib/rounders/rounder.rb

Constant Summary collapse

DEFAULT_ENV =
'development'.freeze
DEFAULT_INTERVAL =
10

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Rounder

Returns a new instance of Rounder.



8
9
10
# File 'lib/rounders/rounder.rb', line 8

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/rounders/rounder.rb', line 6

def options
  @options
end

Instance Method Details

#startObject



12
13
14
15
# File 'lib/rounders/rounder.rb', line 12

def start
  setup
  polling
end

#storeObject



17
18
19
# File 'lib/rounders/rounder.rb', line 17

def store
  @store ||= Rounders.stores[Rounders::Application.config.store].new
end