Class: Sink::Resources::Names::CanCauseClashes::Response
- Inherits:
-
Object
- Object
- Sink::Resources::Names::CanCauseClashes::Response
- Defined in:
- lib/sink/resources/names/can_cause_clashes/response.rb
Overview
The ‘Response` class name can cause clashes with imports.
Instance Method Summary collapse
-
#binary_return(opts = {}) ⇒ Object
Return a binary response.
-
#initialize(client:) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(client:) ⇒ Response
Returns a new instance of Response.
10 11 12 |
# File 'lib/sink/resources/names/can_cause_clashes/response.rb', line 10 def initialize(client:) @client = client end |
Instance Method Details
#binary_return(opts = {}) ⇒ Object
Return a binary response.
19 20 21 22 23 24 25 26 27 |
# File 'lib/sink/resources/names/can_cause_clashes/response.rb', line 19 def binary_return(opts = {}) req = { method: :get, path: "/binaries/return_binary", headers: {"Accept" => "audio/mpeg"}, model: Sink::Unknown } @client.request(req, opts) end |