Class: ApiMethod
- Inherits:
-
Object
- Object
- ApiMethod
- Defined in:
- lib/tester/definition/methods/api_method.rb
Direct Known Subclasses
ApiCopy, ApiDelete, ApiGet, ApiHead, ApiLock, ApiMkcol, ApiMove, ApiOptions, ApiPatch, ApiPost, ApiPropfind, ApiProppatch, ApiPut, ApiTrace, ApiUnlock
Instance Attribute Summary collapse
-
#expected_response ⇒ Object
Returns the value of attribute expected_response.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ ApiMethod
constructor
A new instance of ApiMethod.
- #verb ⇒ Object
Constructor Details
#initialize ⇒ ApiMethod
Returns a new instance of ApiMethod.
9 10 11 12 |
# File 'lib/tester/definition/methods/api_method.rb', line 9 def initialize self.request = Request.new self.expected_response = Response.new 200 end |
Instance Attribute Details
#expected_response ⇒ Object
Returns the value of attribute expected_response.
7 8 9 |
# File 'lib/tester/definition/methods/api_method.rb', line 7 def expected_response @expected_response end |
#request ⇒ Object
Returns the value of attribute request.
6 7 8 |
# File 'lib/tester/definition/methods/api_method.rb', line 6 def request @request end |
Instance Method Details
#call ⇒ Object
14 15 16 |
# File 'lib/tester/definition/methods/api_method.rb', line 14 def call throw "Not implemented" end |
#verb ⇒ Object
18 19 20 |
# File 'lib/tester/definition/methods/api_method.rb', line 18 def verb "None" end |