Method: Pcli::ApiResponse#initialize
- Defined in:
- lib/pcli/api_response.rb
#initialize(code, success_status, status, body) ⇒ ApiResponse
Returns a new instance of ApiResponse.
9 10 11 12 13 14 |
# File 'lib/pcli/api_response.rb', line 9 def initialize(code, success_status, status, body) @code = code @success_status = success_status @status = status @body = body end |