Class: ErroneousAPI::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- ErroneousAPI::Server
- Defined in:
- lib/erroneous-api/server.rb
Class Attribute Summary collapse
-
.mapper ⇒ Object
Returns the value of attribute mapper.
Class Method Summary collapse
Class Attribute Details
.mapper ⇒ Object
Returns the value of attribute mapper.
10 11 12 |
# File 'lib/erroneous-api/server.rb', line 10 def mapper @mapper end |
Class Method Details
.mock! ⇒ Object
13 14 15 16 17 18 |
# File 'lib/erroneous-api/server.rb', line 13 def self.mock! require 'erroneous-api/fake' require 'erroneous-api/client' self.mapper = ErroneousAPI::Fake ErroneousAPI::Client.mock!(self) end |