Class: ApiMethod

Inherits:
Object
  • Object
show all
Defined in:
lib/tester/definition/methods/api_method.rb

Direct Known Subclasses

ApiGet, ApiPost

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApiMethod

Returns a new instance of ApiMethod.



12
13
14
15
# File 'lib/tester/definition/methods/api_method.rb', line 12

def initialize
  self.request = Request.new
  self.expected_response = Response.new 200
end

Instance Attribute Details

#expected_responseObject

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

#requestObject

Returns the value of attribute request.



9
10
11
# File 'lib/tester/definition/methods/api_method.rb', line 9

def request
  @request
end

Instance Method Details

#verbObject



17
18
19
# File 'lib/tester/definition/methods/api_method.rb', line 17

def verb
  "None"
end