Class: Bixby::HttpChannel
- Inherits:
-
APIChannel
- Object
- APIChannel
- Bixby::HttpChannel
- Defined in:
- lib/bixby-common/api/http_channel.rb
Instance Method Summary collapse
-
#execute(json_request) ⇒ JsonResponse
Execute the given request.
-
#execute_download(json_request, &block) ⇒ JsonResponse
Execute a download request NOTE: This method is only available on the HTTP Channel.
-
#initialize(uri) ⇒ HttpChannel
constructor
A new instance of HttpChannel.
Methods included from Log
Constructor Details
#initialize(uri) ⇒ HttpChannel
Returns a new instance of HttpChannel.
6 7 8 |
# File 'lib/bixby-common/api/http_channel.rb', line 6 def initialize(uri) @uri = uri end |
Instance Method Details
#execute(json_request) ⇒ JsonResponse
Execute the given request
15 16 17 |
# File 'lib/bixby-common/api/http_channel.rb', line 15 def execute(json_request) execute_internal(json_request) end |
#execute_download(json_request, &block) ⇒ JsonResponse
Execute a download request NOTE: This method is only available on the HTTP Channel.
27 28 29 |
# File 'lib/bixby-common/api/http_channel.rb', line 27 def execute_download(json_request, &block) execute_internal(json_request, &block) end |