Class: TextTractor::Base
- Inherits:
-
Sinatra::Application
- Object
- Sinatra::Application
- TextTractor::Base
- Defined in:
- lib/text_tractor/base.rb
Instance Method Summary collapse
-
#initialize(app = nil) ⇒ Base
constructor
A new instance of Base.
- #not_authorised ⇒ Object
- #redis ⇒ Object
Constructor Details
#initialize(app = nil) ⇒ Base
Returns a new instance of Base.
13 14 15 |
# File 'lib/text_tractor/base.rb', line 13 def initialize(app=nil) super end |
Instance Method Details
#not_authorised ⇒ Object
21 22 23 |
# File 'lib/text_tractor/base.rb', line 21 def [ 403, "Not Authorised" ] end |
#redis ⇒ Object
17 18 19 |
# File 'lib/text_tractor/base.rb', line 17 def redis TextTractor.redis end |