Class: BBServer::Handler

Inherits:
Object
  • Object
show all
Defined in:
lib/bbserver/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ Handler

Returns a new instance of Handler.



7
8
9
# File 'lib/bbserver/handler.rb', line 7

def initialize(context)
  @context = context
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



5
6
7
# File 'lib/bbserver/handler.rb', line 5

def context
  @context
end

Instance Method Details

#handleObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/bbserver/handler.rb', line 11

def handle
  raise NotImplementedError
end