Class: FakeAPI::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- FakeAPI::App
- Defined in:
- lib/fakeapi/app.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
7 8 9 10 |
# File 'lib/fakeapi/app.rb', line 7 def initialize(*) super @data = {} end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/fakeapi/app.rb', line 5 def data @data end |
Class Method Details
.test(method_name, &call_block) ⇒ Object
12 13 14 |
# File 'lib/fakeapi/app.rb', line 12 def self.test(method_name, &call_block) TestRun.new(self, method_name, call_block).run end |