Class: ApiMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApiMethod

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_responseObject

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

#requestObject

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

#callObject



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

def call
  throw "Not implemented"
end

#verbObject



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

def verb
  "None"
end