Class: DeprecationCollector::Web
- Inherits:
-
Object
- Object
- DeprecationCollector::Web
- Defined in:
- lib/deprecation_collector/web.rb,
lib/deprecation_collector/web/router.rb,
lib/deprecation_collector/web/helpers.rb,
lib/deprecation_collector/web/application.rb
Overview
rack app with a html interface to deprecation collector with a persistent storage like redis
Defined Under Namespace
Modules: Helpers, Router Classes: Application
Instance Attribute Summary collapse
-
#import_enabled ⇒ Object
Returns the value of attribute import_enabled.
Class Method Summary collapse
Instance Method Summary collapse
- #app ⇒ Object
- #call(env) ⇒ Object
-
#initialize(import_enabled: nil) ⇒ Web
constructor
A new instance of Web.
Constructor Details
#initialize(import_enabled: nil) ⇒ Web
Returns a new instance of Web.
14 15 16 |
# File 'lib/deprecation_collector/web.rb', line 14 def initialize(import_enabled: nil) @import_enabled = import_enabled end |
Instance Attribute Details
#import_enabled ⇒ Object
Returns the value of attribute import_enabled.
12 13 14 |
# File 'lib/deprecation_collector/web.rb', line 12 def import_enabled @import_enabled end |
Class Method Details
.call(env) ⇒ Object
18 19 20 21 |
# File 'lib/deprecation_collector/web.rb', line 18 def self.call(env) @app ||= new @app.call(env) end |
Instance Method Details
#app ⇒ Object
27 28 29 |
# File 'lib/deprecation_collector/web.rb', line 27 def app @app ||= build end |
#call(env) ⇒ Object
23 24 25 |
# File 'lib/deprecation_collector/web.rb', line 23 def call(env) app.call(env) end |