Class: VoxableApiAiRuby::GetIntentRequest

Inherits:
Request
  • Object
show all
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

Methods inherited from Request

#perform

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, options={})
  @path = "intents/#{ options.delete(:iid) }"

  super client, options
  @request_method = :get

  # TODO: There should be a method for generating the proper headers.
  @headers = {
      'Authorization': 'Bearer ' + client.developer_access_token
  }
end