Class: ElasticBoard::Application

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/elastic_board.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = { }) ⇒ Application

Initializer Override to get options



17
18
19
20
# File 'lib/elastic_board.rb', line 17

def initialize(options = { })
  self.connection = options[:connection]
  super
end

Instance Attribute Details

#connectionObject

Connection to ElasticSearch



14
15
16
# File 'lib/elastic_board.rb', line 14

def connection
  @connection
end