Class: VoxableApiAiRuby::UpdateEntitiesRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/voxable-api-ai-ruby/update_entities_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 = {}) ⇒ UpdateEntitiesRequest

Returns a new instance of UpdateEntitiesRequest.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/voxable-api-ai-ruby/update_entities_request.rb', line 5

def initialize (client, options={})
  @path = 'entities'

  super client, options
  @request_method = :put
  # TODO: There should be a method for generating the proper headers.
  @headers = {
      'Authorization': 'Bearer ' + client.developer_access_token,
      'Content-Type': 'application/json; charset=utf-8'
  }
end