Class: Igniter::Store::HTTPAdapter::MetadataHandler
- Inherits:
-
Object
- Object
- Igniter::Store::HTTPAdapter::MetadataHandler
- Includes:
- ResponseHelper
- Defined in:
- lib/igniter/store/http_adapter.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(interpreter) ⇒ MetadataHandler
constructor
A new instance of MetadataHandler.
Constructor Details
#initialize(interpreter) ⇒ MetadataHandler
Returns a new instance of MetadataHandler.
72 73 74 |
# File 'lib/igniter/store/http_adapter.rb', line 72 def initialize(interpreter) @interpreter = interpreter end |
Instance Method Details
#call(env) ⇒ Object
76 77 78 79 80 |
# File 'lib/igniter/store/http_adapter.rb', line 76 def call(env) return method_not_allowed unless env["REQUEST_METHOD"] == "GET" json_response(200, @interpreter.) end |