Class: JSONAPIonify::Api::Server
- Inherits:
-
Object
- Object
- JSONAPIonify::Api::Server
- Extended by:
- JSONAPIonify::Autoload
- Defined in:
- lib/jsonapionify/api/server.rb
Defined Under Namespace
Classes: MediaType, MockResponse, Processor, Request
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(api) ⇒ Server
constructor
A new instance of Server.
Methods included from JSONAPIonify::Autoload
autoload_all, eager_load!, unloaded
Constructor Details
#initialize(api) ⇒ Server
Returns a new instance of Server.
11 12 13 |
# File 'lib/jsonapionify/api/server.rb', line 11 def initialize(api) @api = api end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
9 10 11 |
# File 'lib/jsonapionify/api/server.rb', line 9 def api @api end |