Class: VoxableApiAiRuby::GetIntentRequest
- Defined in:
- lib/voxable-api-ai-ruby/get_intent_request.rb
Instance Attribute Summary
Attributes inherited from Request
#client, #headers, #options, #request_method, #uri
Instance Method Summary collapse
-
#initialize(client, options = {}) ⇒ GetIntentRequest
constructor
A new instance of GetIntentRequest.
Methods inherited from Request
Constructor Details
#initialize(client, options = {}) ⇒ GetIntentRequest
Returns a new instance of GetIntentRequest.
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/voxable-api-ai-ruby/get_intent_request.rb', line 3 def initialize (client, ={}) @path = "intents/#{ .delete(:iid) }" super client, @request_method = :get # TODO: There should be a method for generating the proper headers. @headers = { 'Authorization': 'Bearer ' + client.developer_access_token } end |