Class: Hook0::Generated::ResponseApi
- Inherits:
-
Object
- Object
- Hook0::Generated::ResponseApi
- Defined in:
- lib/hook0/generated/api.rb
Overview
What the API declares under response, issued through the transport it is handed.
Instance Method Summary collapse
-
#get(response_id, application_id) ⇒ Response
Get a response by its ID.
-
#initialize(transport) ⇒ ResponseApi
constructor
A new instance of ResponseApi.
Constructor Details
#initialize(transport) ⇒ ResponseApi
Returns a new instance of ResponseApi.
786 787 788 |
# File 'lib/hook0/generated/api.rb', line 786 def initialize(transport) @transport = transport end |
Instance Method Details
#get(response_id, application_id) ⇒ Response
Get a response by its ID
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 |
# File 'lib/hook0/generated/api.rb', line 795 def get(response_id, application_id) read_answer( @transport.request( "GET", Runtime.path( "/api/v1/responses/{response_id}", "response_id" => response_id ), Runtime.query( [ ["application_id", application_id] ], [] ), nil ), Response.method(:from_json) ) end |