Class: ApiMethod
- Inherits:
-
Object
- Object
- ApiMethod
- Defined in:
- lib/tester/definition/methods/api_method.rb
Instance Attribute Summary collapse
-
#expected_response ⇒ Object
Returns the value of attribute expected_response.
-
#request ⇒ Object
Returns the value of attribute request.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ ApiMethod
constructor
A new instance of ApiMethod.
- #verb ⇒ Object
Constructor Details
#initialize(url) ⇒ ApiMethod
Returns a new instance of ApiMethod.
13 14 15 16 17 |
# File 'lib/tester/definition/methods/api_method.rb', line 13 def initialize url self.url = url self.request = Request.new self.expected_response = Response.new 200 end |
Instance Attribute Details
#expected_response ⇒ Object
Returns the value of attribute expected_response.
10 11 12 |
# File 'lib/tester/definition/methods/api_method.rb', line 10 def expected_response @expected_response end |
#request ⇒ Object
Returns the value of attribute request.
9 10 11 |
# File 'lib/tester/definition/methods/api_method.rb', line 9 def request @request end |
#url ⇒ Object
Returns the value of attribute url.
11 12 13 |
# File 'lib/tester/definition/methods/api_method.rb', line 11 def url @url end |
Instance Method Details
#verb ⇒ Object
19 20 21 |
# File 'lib/tester/definition/methods/api_method.rb', line 19 def verb "None" end |